Skip to content
Snippets Groups Projects
Commit e0467aa0 authored by Morris Jette's avatar Morris Jette
Browse files

Fix for sinfo when loading info for a single node name

parent 0f7e866e
No related branches found
No related tags found
No related merge requests found
......@@ -401,38 +401,44 @@ static int _build_sinfo_data(List sinfo_list,
continue;
j2 = 0;
while(part_ptr->node_inx[j2] >= 0) {
while (part_ptr->node_inx[j2] >= 0) {
int i2 = 0;
uint16_t subgrp_size = 0;
for(i2 = part_ptr->node_inx[j2];
i2 <= part_ptr->node_inx[j2+1];
i2++) {
for (i2 = part_ptr->node_inx[j2];
i2 <= part_ptr->node_inx[j2+1];
i2++) {
if (i2 >= node_msg->record_count) {
/* This can happen if info for single
* node name is loaded */
break;
}
node_ptr = &(node_msg->node_array[i2]);
if (node_ptr->name == NULL ||
if ((node_ptr->name == NULL) ||
(params.filtering &&
_filter_out(node_ptr)))
continue;
if(select_g_select_nodeinfo_get(
if (select_g_select_nodeinfo_get(
node_ptr->select_nodeinfo,
SELECT_NODEDATA_SUBGRP_SIZE,
0,
&subgrp_size) == SLURM_SUCCESS
&& subgrp_size)
&& subgrp_size) {
_handle_subgrps(sinfo_list,
(uint16_t) j,
part_ptr,
node_ptr,
node_msg->
node_scaling);
else
} else {
_insert_node_ptr(sinfo_list,
(uint16_t) j,
part_ptr,
node_ptr,
node_msg->
node_scaling);
}
}
j2 += 2;
}
......
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