Correct use of the return code from opal_pointer_array_add
This commit was SVN r20417.
Этот коммит содержится в:
родитель
9c2a6da128
Коммит
c534757b59
@ -113,12 +113,7 @@ orte_plm_xgrid_make_nodes(orte_job_t *jdata)
|
|||||||
node->slots_inuse = 0;
|
node->slots_inuse = 0;
|
||||||
node->slots_max = 0;
|
node->slots_max = 0;
|
||||||
node->slots = 1;
|
node->slots = 1;
|
||||||
node->index = i;
|
node->index = opal_pointer_array_add(orte_node_pool, (void*)node);
|
||||||
if (ORTE_SUCCESS != (rc = opal_pointer_array_add(orte_node_pool,
|
|
||||||
(void*)node))) {
|
|
||||||
ORTE_ERROR_LOG(rc);
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
/* update the total slots in the job */
|
/* update the total slots in the job */
|
||||||
jdata->total_slots_alloc += node->slots;
|
jdata->total_slots_alloc += node->slots;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user