Skip to content

Commit

Permalink
Silence error log
Browse files Browse the repository at this point in the history
Not really an "error" to have an empty response to a query, so
don't error log it.

Signed-off-by: Ralph Castain <[email protected]>
(cherry picked from commit f930dcd)
  • Loading branch information
rhc54 committed Oct 23, 2023
1 parent 09c4212 commit ca2dafd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/prted/pmix/pmix_server_queries.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,12 +781,14 @@ static void _query(int sd, short args, void *cbdata)
done:
rcd = PMIX_NEW(prte_pmix_server_op_caddy_t);
PMIX_INFO_LIST_CONVERT(rc, results, &dry);
if (PMIX_SUCCESS != rc) {
if (PMIX_SUCCESS != rc && PMIX_ERR_EMPTY != rc) {
PMIX_ERROR_LOG(rc);
ret = rc;
}
PMIX_INFO_LIST_RELEASE(results);
if (PMIX_SUCCESS == ret) {
if (PMIX_ERR_EMPTY == rc) {
ret = PMIX_ERR_NOT_FOUND;
} else if (PMIX_SUCCESS == ret) {
if (0 == dry.size) {
ret = PMIX_ERR_NOT_FOUND;
} else {
Expand Down

0 comments on commit ca2dafd

Please sign in to comment.