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

Move commit to last thing so data isn't rolled back.

parent 9cefc7c5
No related branches found
No related tags found
No related merge requests found
......@@ -251,8 +251,6 @@ static void * _service_connection(void *arg)
}
if (conn->ctld_port) {
acct_storage_g_commit(conn->db_conn, 1);
if (!shutdown_time) {
slurmdb_cluster_rec_t cluster_rec;
ListIterator itr;
......@@ -279,6 +277,8 @@ static void * _service_connection(void *arg)
list_iterator_destroy(itr);
slurm_mutex_unlock(&registered_lock);
}
/* needs to be the last thing done */
acct_storage_g_commit(conn->db_conn, 1);
}
acct_storage_g_close_connection(&conn->db_conn);
......
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