Let's see if Cyrador understands this version a little better...
This commit was SVN r11709.
Этот коммит содержится в:
родитель
ac42284c16
Коммит
977e3c5ca1
@ -762,6 +762,10 @@ int orte_odls_default_launch_local_procs(orte_gpr_notify_data_t *data)
|
||||
|
||||
OBJ_CONSTRUCT(&app_context_list, opal_list_t);
|
||||
|
||||
/* set the default values to INVALID */
|
||||
start = ORTE_VPID_INVALID;
|
||||
range = ORTE_VPID_INVALID;
|
||||
|
||||
values = (orte_gpr_value_t**)(data->values)->addr;
|
||||
for (j=0, i=0; i < data->cnt && j < (data->values)->size; j++) { /* loop through all returned values */
|
||||
if (NULL != values[j]) {
|
||||
@ -773,9 +777,6 @@ int orte_odls_default_launch_local_procs(orte_gpr_notify_data_t *data)
|
||||
* the app_context(s), vpid_start, and vpid_range entries. Only one
|
||||
* value object should ever come from that container
|
||||
*/
|
||||
/* set the default values to INVALID */
|
||||
start = ORTE_VPID_INVALID;
|
||||
range = ORTE_VPID_INVALID;
|
||||
for (kv=0; kv < value->cnt; kv++) {
|
||||
kval = value->keyvals[kv];
|
||||
if (strcmp(kval->key, ORTE_JOB_VPID_START_KEY) == 0) {
|
||||
|
@ -608,15 +608,14 @@ static void orte_daemon_recv_pls(int status, orte_process_name_t* sender,
|
||||
n = 1;
|
||||
if (ORTE_SUCCESS != (ret = orte_dss.unpack(buffer, &command, &n, ORTE_DAEMON_CMD))) {
|
||||
ORTE_ERROR_LOG(ret);
|
||||
goto DONE;
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
/* setup the answer */
|
||||
|
||||
answer = OBJ_NEW(orte_buffer_t);
|
||||
if (NULL == answer) {
|
||||
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
||||
goto DONE;
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
/* pack the command to ensure we always have something to send back, and
|
||||
@ -624,6 +623,7 @@ static void orte_daemon_recv_pls(int status, orte_process_name_t* sender,
|
||||
*/
|
||||
if (ORTE_SUCCESS != (ret = orte_dss.pack(answer, &command, 1, ORTE_DAEMON_CMD))) {
|
||||
ORTE_ERROR_LOG(ret);
|
||||
OBJ_RELEASE(answer);
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
@ -705,9 +705,9 @@ DONE:
|
||||
if (0 > orte_rml.send_buffer(sender, answer, ORTE_RML_TAG_PLS_ORTED, 0)) {
|
||||
ORTE_ERROR_LOG(ORTE_ERR_COMM_FAILURE);
|
||||
}
|
||||
OBJ_RELEASE(answer);
|
||||
|
||||
CLEANUP:
|
||||
OBJ_RELEASE(answer);
|
||||
OPAL_THREAD_UNLOCK(&orted_globals.mutex);
|
||||
|
||||
/* reissue the non-blocking receive */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user