From 437c5764c17a301114b9d0002fac5bfe553422b5 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Wed, 12 Nov 2008 20:53:22 +0000 Subject: [PATCH] fix for sending a first registration message from the slurmdbd to the 1.3 controller --- .../accounting_storage/mysql/accounting_storage_mysql.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/accounting_storage/mysql/accounting_storage_mysql.c b/src/plugins/accounting_storage/mysql/accounting_storage_mysql.c index 21c64faba61..1b111dbe5c1 100644 --- a/src/plugins/accounting_storage/mysql/accounting_storage_mysql.c +++ b/src/plugins/accounting_storage/mysql/accounting_storage_mysql.c @@ -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 -- GitLab