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

minor modifications to not mess with global names

parent 2d74961f
No related branches found
No related tags found
No related merge requests found
...@@ -1918,7 +1918,7 @@ extern int jobacct_storage_p_job_start(void *db_conn, ...@@ -1918,7 +1918,7 @@ extern int jobacct_storage_p_job_start(void *db_conn,
* the system. * the system.
*/ */
if((req.db_index && !IS_JOB_RESIZING(job_ptr)) if((req.db_index && !IS_JOB_RESIZING(job_ptr))
|| (!req.db_index && IS_JOB_FINISHED(job_ptr))) { || (!req.db_index && IS_JOB_FINISHED(job_ptr))) {
/* This is to ensure we don't do this multiple times for the /* This is to ensure we don't do this multiple times for the
same job. This can happen when an account is being same job. This can happen when an account is being
deleted and hense the associations dealing with it. deleted and hense the associations dealing with it.
...@@ -1933,7 +1933,6 @@ extern int jobacct_storage_p_job_start(void *db_conn, ...@@ -1933,7 +1933,6 @@ extern int jobacct_storage_p_job_start(void *db_conn,
xfree(req.block_id); xfree(req.block_id);
return SLURM_SUCCESS; return SLURM_SUCCESS;
} }
/* If we don't have the db_index we need to wait for it to be /* If we don't have the db_index we need to wait for it to be
* used in the other submissions for this job. * used in the other submissions for this job.
*/ */
...@@ -2228,7 +2227,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid, ...@@ -2228,7 +2227,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
dbd_cond_msg_t get_msg; dbd_cond_msg_t get_msg;
dbd_list_msg_t *got_msg; dbd_list_msg_t *got_msg;
int rc; int rc;
List job_list = NULL; List my_job_list = NULL;
memset(&get_msg, 0, sizeof(dbd_cond_msg_t)); memset(&get_msg, 0, sizeof(dbd_cond_msg_t));
...@@ -2244,7 +2243,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid, ...@@ -2244,7 +2243,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
dbd_rc_msg_t *msg = resp.data; dbd_rc_msg_t *msg = resp.data;
if(msg->return_code == SLURM_SUCCESS) { if(msg->return_code == SLURM_SUCCESS) {
info("%s", msg->comment); info("%s", msg->comment);
job_list = list_create(NULL); my_job_list = list_create(NULL);
} else { } else {
slurm_seterrno(msg->return_code); slurm_seterrno(msg->return_code);
error("%s", msg->comment); error("%s", msg->comment);
...@@ -2255,12 +2254,12 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid, ...@@ -2255,12 +2254,12 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
resp.msg_type); resp.msg_type);
} else { } else {
got_msg = (dbd_list_msg_t *) resp.data; got_msg = (dbd_list_msg_t *) resp.data;
job_list = got_msg->my_list; my_job_list = got_msg->my_list;
got_msg->my_list = NULL; got_msg->my_list = NULL;
slurmdbd_free_list_msg(got_msg); slurmdbd_free_list_msg(got_msg);
} }
return job_list; return my_job_list;
} }
/* /*
......
...@@ -996,7 +996,7 @@ static void _preempt_jobs(List preemptee_job_list, int *error_code) ...@@ -996,7 +996,7 @@ static void _preempt_jobs(List preemptee_job_list, int *error_code)
* 3) Call allocate_nodes() to perform the actual allocation * 3) Call allocate_nodes() to perform the actual allocation
*/ */
extern int select_nodes(struct job_record *job_ptr, bool test_only, extern int select_nodes(struct job_record *job_ptr, bool test_only,
bitstr_t **select_node_bitmap) bitstr_t **select_node_bitmap)
{ {
int error_code = SLURM_SUCCESS, i, node_set_size = 0; int error_code = SLURM_SUCCESS, i, node_set_size = 0;
bitstr_t *select_bitmap = NULL; bitstr_t *select_bitmap = NULL;
......
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