Skip to content

Commit 5aa775c

Browse files
committed
Correctly set the byte_object size
Signed-off-by: Ralph Castain <rhc@pmix.org>
1 parent aed06e6 commit 5aa775c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

orte/util/nidmap.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ int orte_util_decode_ppn(orte_job_t *jdata,
10881088
}
10891089
} else {
10901090
bytes = boptr->bytes;
1091+
sz = boptr->size;
10911092
boptr->bytes = NULL;
10921093
boptr->size = 0;
10931094
}
@@ -1134,6 +1135,7 @@ int orte_util_decode_ppn(orte_job_t *jdata,
11341135
/* flag the proc as ready for launch */
11351136
proc->state = ORTE_PROC_STATE_INIT;
11361137
opal_pointer_array_add(node->procs, proc);
1138+
node->num_procs++;
11371139
/* we will add the proc to the jdata array when we
11381140
* compute its rank */
11391141
}
@@ -1142,6 +1144,9 @@ int orte_util_decode_ppn(orte_job_t *jdata,
11421144
}
11431145
OBJ_DESTRUCT(&bucket);
11441146
}
1147+
if (OPAL_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc) {
1148+
ORTE_ERROR_LOG(rc);
1149+
}
11451150

11461151
/* reset any flags */
11471152
for (m=0; m < jdata->map->nodes->size; m++) {
@@ -1150,7 +1155,6 @@ int orte_util_decode_ppn(orte_job_t *jdata,
11501155
ORTE_FLAG_UNSET(node, ORTE_NODE_FLAG_MAPPED);
11511156
}
11521157
}
1153-
11541158
return ORTE_SUCCESS;
11551159

11561160
error:

0 commit comments

Comments
 (0)