Skip to content

Commit

Permalink
auto_fwd_resp_handler should forward resp->get_result_code (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
byronhe committed Apr 17, 2024
1 parent 870ef95 commit d62c183
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handle_user_cmd.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,13 @@ void raft_server::auto_fwd_resp_handler( ptr<cmd_result<ptr<buffer>>> presult,

if (err) {
perr = err;
code = cmd_result_code::FAILED;
} else {
if (resp->get_accepted()) {
resp_ctx = resp->get_ctx();
presult->accept();
code = resp->get_result_code();
}
code = resp->get_result_code();
}

presult->set_result(resp_ctx, perr, code);
Expand Down

0 comments on commit d62c183

Please sign in to comment.