Skip to content

Commit

Permalink
In the case where the server is using a different dstore component,
Browse files Browse the repository at this point in the history
check that as well.

Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
  • Loading branch information
awlauria authored and rhc54 committed Mar 24, 2022
1 parent 8a41b35 commit 4aa95ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/client/pmix_client_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,20 @@ static void _getnb_cbfunc(struct pmix_peer_t *pr, pmix_ptl_hdr_t *hdr,
if (PMIX_OPERATION_SUCCEEDED == rc) {
rc = PMIX_SUCCESS;
}
else {
/* if we are both using the "hash" component, then the server's peer
* will simply be pointing at the same hash tables as my peer - no
* no point in checking there again */
if (!PMIX_GDS_CHECK_COMPONENT(pmix_client_globals.myserver, "hash")) {
pmix_output_verbose(2, pmix_client_globals.get_output,
"pmix: get_nb searching for key %s for proc %s, - %s",
cb->key, PMIX_NAME_PRINT(cb->proc), pmix_client_globals.myserver->nptr->compat.gds->name);
PMIX_GDS_FETCH_KV(rc, pmix_client_globals.myserver, cb);
if (PMIX_OPERATION_SUCCEEDED == rc) {
rc = PMIX_SUCCESS;
}
}
}
if (PMIX_SUCCESS == rc) {
if (1 != pmix_list_get_size(&cb->kvs)) {
rc = PMIX_ERR_INVALID_VAL;
Expand Down

0 comments on commit 4aa95ff

Please sign in to comment.