Skip to content
Snippets Groups Projects
Commit 437c5764 authored by Danny Auble's avatar Danny Auble
Browse files

fix for sending a first registration message from the slurmdbd to the 1.3 controller

parent 2c32b1ed
No related branches found
No related tags found
No related merge requests found
......@@ -4246,9 +4246,17 @@ extern List acct_storage_p_modify_clusters(mysql_conn_t *mysql_conn,
error("can not open socket back to slurmctld");
} else {
slurm_msg_t out_msg;
accounting_update_msg_t update;
/* We have to put this update message here so
we can tell the sender to send the correct
RPC version.
*/
memset(&update, 0, sizeof(accounting_update_msg_t));
update.rpc_version = cluster->rpc_version;
slurm_msg_t_init(&out_msg);
out_msg.msg_type = ACCOUNTING_FIRST_REG;
out_msg.flags = SLURM_GLOBAL_AUTH_KEY;
out_msg.data = &update;
slurm_send_node_msg(fd, &out_msg);
/* We probably need to add matching recv_msg function
* for an arbitray fd or should these be fire
......
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