diff --git a/src/handle_user_cmd.cxx b/src/handle_user_cmd.cxx index c63352eb..3e0819db 100644 --- a/src/handle_user_cmd.cxx +++ b/src/handle_user_cmd.cxx @@ -340,6 +340,7 @@ void raft_server::auto_fwd_resp_handler( ptr>> presult, { ptr resp_ctx(nullptr); ptr perr; + cmd_result_code code = cmd_result_code::OK; if (err) { perr = err; } else { @@ -347,9 +348,9 @@ void raft_server::auto_fwd_resp_handler( ptr>> presult, resp_ctx = resp->get_ctx(); presult->accept(); } + code = resp->get_result_code(); } - - presult->set_result(resp_ctx, perr); + presult->set_result(resp_ctx, perr, code); auto_fwd_release_rpc_cli(cur_pkg, rpc_cli); }