Skip to content

Commit

Permalink
DAOS-16914 vos: fix typo in vos_iterate_internal()
Browse files Browse the repository at this point in the history
Set rc to zero for both ITER_ABORT & ITER_EXIT case.

Signed-off-by: Niu Yawei <[email protected]>
  • Loading branch information
NiuYawei committed Jan 2, 2025
1 parent 09903e8 commit 4740331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vos/vos_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,9 @@ vos_iter_cb(vos_iter_cb_t iter_cb, daos_handle_t ih, vos_iter_entry_t *iter_ent,
do { \
switch (rc) { \
case ITER_ABORT: \
(rc) = 0; \
/* fallthrough */ \
case ITER_EXIT: \
(rc) = 0; \
goto abort_label; \
case ITER_NEXT: \
goto next_label; \
Expand Down

0 comments on commit 4740331

Please sign in to comment.