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

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

parents e91b4e2c 3c61b61b
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ documents those changes that are of interest to users and admins. ...@@ -210,6 +210,7 @@ documents those changes that are of interest to users and admins.
Gerrit Renker (CSCS). Gerrit Renker (CSCS).
-- Fixed Regression from 2.2.4 in accounting where an inherited limit -- Fixed Regression from 2.2.4 in accounting where an inherited limit
would not be set correctly in the added child association. would not be set correctly in the added child association.
-- Fixed issue with accounting when asking for jobs with a hostlist.
* Changes in SLURM 2.2.6 * Changes in SLURM 2.2.6
======================== ========================
......
...@@ -844,7 +844,7 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn, ...@@ -844,7 +844,7 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn,
} }
temp_hl = hostlist_create(job_cond->used_nodes); temp_hl = hostlist_create(job_cond->used_nodes);
if (!hostlist_count(temp_hl)) { if (hostlist_count(temp_hl) <= 0) {
error("we didn't get any real hosts to look for."); error("we didn't get any real hosts to look for.");
goto no_hosts; goto no_hosts;
} }
...@@ -870,8 +870,7 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn, ...@@ -870,8 +870,7 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn,
mysql_conn->conn, THIS_FILE, __LINE__, query); mysql_conn->conn, THIS_FILE, __LINE__, query);
if (!(result = mysql_db_query_ret(mysql_conn, query, 0))) { if (!(result = mysql_db_query_ret(mysql_conn, query, 0))) {
xfree(query); xfree(query);
hostlist_destroy(temp_hl); goto no_hosts;
return NULL;
} }
xfree(query); xfree(query);
...@@ -903,14 +902,16 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn, ...@@ -903,14 +902,16 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn,
_destroy_local_cluster(local_cluster); _destroy_local_cluster(local_cluster);
} }
mysql_free_result(result); mysql_free_result(result);
hostlist_iterator_destroy(h_itr);
if (!list_count(local_cluster_list)) { if (!list_count(local_cluster_list)) {
hostlist_destroy(temp_hl);
list_destroy(local_cluster_list); list_destroy(local_cluster_list);
return NULL; local_cluster_list = NULL;
goto no_hosts;
} }
no_hosts: no_hosts:
hostlist_iterator_destroy(h_itr);
hostlist_destroy(temp_hl); hostlist_destroy(temp_hl);
return local_cluster_list; return local_cluster_list;
......
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