Skip to content

Commit

Permalink
Fix handling of error from exec_apply
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Oct 10, 2024
1 parent fc98dcc commit 63e0ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leader.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ int exec_async(struct exec *req, int status)
} else if (apply_rv != LEADER_NOT_ASYNC) {
req->status = apply_rv;
exec_done(req, ret);
ret = 0;
ret = LEADER_NOT_ASYNC;
break;

Check warning on line 588 in src/leader.c

View check run for this annotation

Codecov / codecov/patch

src/leader.c#L585-L588

Added lines #L585 - L588 were not covered by tests
} /* else apply_rv == LEADER_NOT_ASYNC => */
ret &= LEADER_NOT_ASYNC;
Expand Down

0 comments on commit 63e0ede

Please sign in to comment.