Skip to content

Commit

Permalink
Log final status in ucxx::RequestTagMulti::markCompleted()
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Dec 6, 2023
1 parent ae0f6c7 commit b59fa08
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions cpp/src/request_tag_multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,24 @@ void RequestTagMulti::markCompleted(ucs_status_t status, RequestCallbackUserData
if (_finalStatus == UCS_OK && status != UCS_OK) _finalStatus = status;

if (++_completedRequests == _totalFrames) {
auto s = UCS_OK;

setStatus(_finalStatus);
}

ucxx_trace_req("RequestTagMulti::markCompleted request: %p, tag: %lx, completed: %lu/%lu",
this,
_tag,
_completedRequests,
_totalFrames);
ucxx_trace_req(
"RequestTagMulti::markCompleted request: %p, tag: %lx, completed: %lu/%lu, final status: %d "
"(%s)",
this,
_tag,
_completedRequests,
_totalFrames,
_finalStatus,
ucs_status_string(_finalStatus));
} else {
ucxx_trace_req("RequestTagMulti::markCompleted request: %p, tag: %lx, completed: %lu/%lu",
this,
_tag,
_completedRequests,
_totalFrames);
}
}

void RequestTagMulti::recvHeader()
Expand Down

0 comments on commit b59fa08

Please sign in to comment.