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

cray - removed useless hostlist creation.

parent 1ed29e62
No related branches found
No related tags found
No related merge requests found
...@@ -592,7 +592,6 @@ extern int do_basil_reserve(struct job_record *job_ptr) ...@@ -592,7 +592,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
uint32_t mppmem = 0, node_min_mem = 0; uint32_t mppmem = 0, node_min_mem = 0;
uint32_t resv_id; uint32_t resv_id;
int i, first_bit, last_bit; int i, first_bit, last_bit;
hostlist_t hl;
long rc; long rc;
char *user, batch_id[16]; char *user, batch_id[16];
...@@ -627,10 +626,6 @@ extern int do_basil_reserve(struct job_record *job_ptr) ...@@ -627,10 +626,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
node_min_mem = job_ptr->details->pn_min_memory; node_min_mem = job_ptr->details->pn_min_memory;
} }
hl = hostlist_create("");
if (hl == NULL)
fatal("hostlist_create: malloc error");
for (i = first_bit; i <= last_bit; i++) { for (i = first_bit; i <= last_bit; i++) {
struct node_record *node_ptr = node_record_table_ptr + i; struct node_record *node_ptr = node_record_table_ptr + i;
uint32_t basil_node_id; uint32_t basil_node_id;
...@@ -642,7 +637,8 @@ extern int do_basil_reserve(struct job_record *job_ptr) ...@@ -642,7 +637,8 @@ extern int do_basil_reserve(struct job_record *job_ptr)
continue; /* bad node */ continue; /* bad node */
if (sscanf(node_ptr->name, "nid%05u", &basil_node_id) != 1) if (sscanf(node_ptr->name, "nid%05u", &basil_node_id) != 1)
fatal("can not read basil_node_id from %s", node_ptr->name); fatal("can not read basil_node_id from %s",
node_ptr->name);
if (ns_add_node(&ns_head, basil_node_id) != 0) { if (ns_add_node(&ns_head, basil_node_id) != 0) {
error("can not add node %s (nid%05u)", node_ptr->name, error("can not add node %s (nid%05u)", node_ptr->name,
......
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