From 1bf9684ebbe97dac75ec7931deec205c562aab6e Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 25 Mar 2010 22:54:57 +0000 Subject: [PATCH] Don't include jobs in the nidmap if they aren't mapped jobs This commit was SVN r22886. --- orte/util/nidmap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/orte/util/nidmap.c b/orte/util/nidmap.c index 34be793be9..615172ad43 100644 --- a/orte/util/nidmap.c +++ b/orte/util/nidmap.c @@ -619,6 +619,12 @@ int orte_util_encode_pidmap(opal_byte_object_t *boptr) if (NULL == (jdata = (orte_job_t*)opal_pointer_array_get_item(orte_job_data, j))) { continue; } + /* if this job doesn't have a map, then it is a tool + * and doesn't need to be included + */ + if (NULL == jdata->map) { + continue; + } /* pack the jobid */ if (ORTE_SUCCESS != (rc = opal_dss.pack(&buf, &jdata->jobid, 1, ORTE_JOBID))) { ORTE_ERROR_LOG(rc);