Skip to content

Commit

Permalink
DAOS-14071 client: do not assert event is ready if progress fails (#1…
Browse files Browse the repository at this point in the history
…2718)

Assertion that event is in READY state should be only if progress returns success.

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>
  • Loading branch information
mchaarawi authored Jul 31, 2023
1 parent 30d16d1 commit 216ee26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/api/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,9 @@ daos_event_priv_wait()
break;
}

D_ASSERT(evx->evx_status == DAOS_EVS_READY);
/** on success, the event should have been reset to ready stat by the progress cb */
if (rc == 0)
D_ASSERT(evx->evx_status == DAOS_EVS_READY);
rc2 = daos_event_priv_reset();
if (rc2) {
if (rc == 0)
Expand Down

0 comments on commit 216ee26

Please sign in to comment.