Skip to content

Commit 67a08e8

Browse files
author
rhc54
authored
Merge pull request #2632 from rhc54/topic/updates
Transfer some minor cleanups back from the PMIx reference server
2 parents 19e3be3 + ef3f748 commit 67a08e8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

orte/mca/state/base/state_base_fns.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ void orte_state_base_check_all_complete(int fd, short args, void *cbdata)
928928
/* this was a debugger daemon. notify that a debugger has detached */
929929
ORTE_ACTIVATE_JOB_STATE(jdata, ORTE_JOB_STATE_DEBUGGER_DETACH);
930930
}
931+
opal_hash_table_set_value_uint32(orte_job_data, jdata->jobid, NULL);
931932
OBJ_RELEASE(jdata);
932933
}
933934
}

orte/mca/state/dvm/state_dvm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,5 +457,10 @@ static void check_complete(int fd, short args, void *cbdata)
457457
static void cleanup_job(int sd, short args, void *cbdata)
458458
{
459459
orte_state_caddy_t *caddy = (orte_state_caddy_t*)cbdata;
460+
orte_job_t *jdata = caddy->jdata;
461+
462+
/* remove this object from the job array */
463+
opal_hash_table_set_value_uint32(orte_job_data, jdata->jobid, NULL);
464+
460465
OBJ_RELEASE(caddy);
461466
}

orte/tools/orte-dvm/orte-dvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ static void send_callback(int status, orte_process_name_t *peer,
477477

478478
OBJ_RELEASE(buffer);
479479
/* cleanup the job object */
480+
opal_hash_table_set_value_uint32(orte_job_data, jdata->jobid, NULL);
480481
OBJ_RELEASE(jdata);
481482
}
482483

@@ -530,4 +531,3 @@ static void notify_requestor(int sd, short args, void *cbdata)
530531
* up in the send callback */
531532
OBJ_RELEASE(caddy);
532533
}
533-

0 commit comments

Comments
 (0)