Skip to content

Commit 5ea3328

Browse files
committed
Need to replace the entire proc in fence with group member
Replacing only the nspace leaves the group rank instead of the proc's nspace rank, so we need to replace the entire proc entry with the grp member's ID. Signed-off-by: Ralph Castain <[email protected]>
1 parent d9aa3a0 commit 5ea3328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/pmix_server_ops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,9 @@ pmix_status_t pmix_server_fence(pmix_server_caddy_t *cd, pmix_buffer_t *buf,
931931
rc = PMIX_ERR_BAD_PARAM;
932932
goto cleanup;
933933
}
934-
/* we own the procs array, so just replace the procs nspace
935-
* (which is the group ID) with that of the member */
936-
PMIX_LOAD_NSPACE(procs[n].nspace, grp->members[n].nspace);
934+
/* we own the procs array, so just replace the procs entry
935+
* with that of the member with that group rank */
936+
memcpy(&procs[n], &grp->members[procs[n].rank], sizeof(pmix_proc_t));
937937
}
938938
}
939939
}

0 commit comments

Comments
 (0)