Skip to content
Snippets Groups Projects
Commit 9e4f1488 authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Prevent invalid read when fed_mgr is finishing

parent 4c31e15a
No related branches found
No related tags found
No related merge requests found
......@@ -714,10 +714,14 @@ extern int fed_mgr_fini()
lock_slurmctld(fed_write_lock);
slurm_persist_conn_recv_server_fini();
/* Call _leave_federation() before slurm_persist_conn_recv_server_fini()
* as this will NULL out the cluster's recv persistent connection before
* _server_fini() actually destroy's it. That way the cluster's recv
* connection won't be pointing to bad memory. */
_leave_federation();
slurm_persist_conn_recv_server_fini();
unlock_slurmctld(fed_write_lock);
return SLURM_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment