Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix one more spot for "get" from rank undefined #3261

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/server/pmix_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -4534,6 +4534,14 @@ static pmix_status_t server_switchyard(pmix_peer_t *peer, uint32_t tag, pmix_buf
kv = (pmix_kval_t*)pmix_list_remove_first(&cb.kvs);
PMIX_BFROPS_PACK(rc, pmix_globals.mypeer, reply, kv, 1, PMIX_KVAL);
PMIX_RELEASE(kv);
} else {
// try to retrieve from another spot
PMIX_GDS_FETCH_KV(rc, peer, &cb);
if (PMIX_SUCCESS == rc) {
kv = (pmix_kval_t*)pmix_list_remove_first(&cb.kvs);
PMIX_BFROPS_PACK(rc, pmix_globals.mypeer, reply, kv, 1, PMIX_KVAL);
PMIX_RELEASE(kv);
}
}
PMIX_DESTRUCT(&cb);
}
Expand Down