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

Merge remote-tracking branch 'origin/slurm-15.08'

parents a862aa15 72f13426
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,8 @@ documents those changes that are of interest to users and administrators. ...@@ -146,6 +146,8 @@ documents those changes that are of interest to users and administrators.
slurmstepd to close potential open ones. slurmstepd to close potential open ones.
-- Step GRES value changed from type "int" to "int64_t" to support larger -- Step GRES value changed from type "int" to "int64_t" to support larger
values. values.
-- Fix getting reservations to database when database is down.
-- Fix issue with sbcast not doing a correct fanout.
* Changes in Slurm 15.08.8 * Changes in Slurm 15.08.8
========================== ==========================
......
...@@ -366,6 +366,10 @@ static int _bcast_file(struct bcast_parameters *params) ...@@ -366,6 +366,10 @@ static int _bcast_file(struct bcast_parameters *params)
bcast_msg.mtime = 0; bcast_msg.mtime = 0;
} }
if (!params->fanout)
params->fanout = MAX_THREADS;
slurm_set_tree_width(MIN(MAX_THREADS, params->fanout));
while (1) { while (1) {
block_len = _get_block(params, buffer, buf_size); block_len = _get_block(params, buffer, buf_size);
if (block_len < 0) if (block_len < 0)
......
...@@ -763,7 +763,7 @@ extern int acct_storage_p_add_reservation(void *db_conn, ...@@ -763,7 +763,7 @@ extern int acct_storage_p_add_reservation(void *db_conn,
{ {
slurmdbd_msg_t req; slurmdbd_msg_t req;
dbd_rec_msg_t get_msg; dbd_rec_msg_t get_msg;
int rc, resp_code = SLURM_SUCCESS; int rc;
memset(&get_msg, 0, sizeof(dbd_rec_msg_t)); memset(&get_msg, 0, sizeof(dbd_rec_msg_t));
get_msg.rec = resv; get_msg.rec = resv;
...@@ -771,11 +771,7 @@ extern int acct_storage_p_add_reservation(void *db_conn, ...@@ -771,11 +771,7 @@ extern int acct_storage_p_add_reservation(void *db_conn,
req.msg_type = DBD_ADD_RESV; req.msg_type = DBD_ADD_RESV;
req.data = &get_msg; req.data = &get_msg;
rc = slurm_send_slurmdbd_recv_rc_msg(SLURM_PROTOCOL_VERSION, rc = slurm_send_slurmdbd_msg(SLURM_PROTOCOL_VERSION, &req);
&req, &resp_code);
if (resp_code != SLURM_SUCCESS)
rc = resp_code;
return rc; return rc;
} }
...@@ -1134,18 +1130,14 @@ extern int acct_storage_p_modify_reservation(void *db_conn, ...@@ -1134,18 +1130,14 @@ extern int acct_storage_p_modify_reservation(void *db_conn,
{ {
slurmdbd_msg_t req; slurmdbd_msg_t req;
dbd_rec_msg_t get_msg; dbd_rec_msg_t get_msg;
int rc, resp_code = SLURM_SUCCESS; int rc;
memset(&get_msg, 0, sizeof(dbd_rec_msg_t)); memset(&get_msg, 0, sizeof(dbd_rec_msg_t));
get_msg.rec = resv; get_msg.rec = resv;
req.msg_type = DBD_MODIFY_RESV; req.msg_type = DBD_MODIFY_RESV;
req.data = &get_msg; req.data = &get_msg;
rc = slurm_send_slurmdbd_recv_rc_msg(SLURM_PROTOCOL_VERSION, rc = slurm_send_slurmdbd_msg(SLURM_PROTOCOL_VERSION, &req);
&req, &resp_code);
if (resp_code != SLURM_SUCCESS)
rc = resp_code;
return rc; return rc;
} }
...@@ -1506,7 +1498,7 @@ extern int acct_storage_p_remove_reservation(void *db_conn, ...@@ -1506,7 +1498,7 @@ extern int acct_storage_p_remove_reservation(void *db_conn,
{ {
slurmdbd_msg_t req; slurmdbd_msg_t req;
dbd_rec_msg_t get_msg; dbd_rec_msg_t get_msg;
int rc, resp_code = SLURM_SUCCESS; int rc;
memset(&get_msg, 0, sizeof(dbd_rec_msg_t)); memset(&get_msg, 0, sizeof(dbd_rec_msg_t));
get_msg.rec = resv; get_msg.rec = resv;
...@@ -1514,11 +1506,7 @@ extern int acct_storage_p_remove_reservation(void *db_conn, ...@@ -1514,11 +1506,7 @@ extern int acct_storage_p_remove_reservation(void *db_conn,
req.msg_type = DBD_REMOVE_RESV; req.msg_type = DBD_REMOVE_RESV;
req.data = &get_msg; req.data = &get_msg;
rc = slurm_send_slurmdbd_recv_rc_msg(SLURM_PROTOCOL_VERSION, rc = slurm_send_slurmdbd_msg(SLURM_PROTOCOL_VERSION, &req);
&req, &resp_code);
if ((rc == SLURM_SUCCESS) && (resp_code != SLURM_SUCCESS))
rc = resp_code;
return rc; return rc;
} }
......
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