From 3a64f74a9cd4fe32da3fe57e2e961adc8b7e21cd Mon Sep 17 00:00:00 2001 From: byronhe <1394332+byronhe@users.noreply.github.com> Date: Tue, 7 May 2024 04:23:27 +0800 Subject: [PATCH] 1. cmd_result::get_result_str add SERVER_IS_LEAVING (#505) (#506) Co-authored-by: byronhe --- include/libnuraft/async.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libnuraft/async.hxx b/include/libnuraft/async.hxx index 654743d2..872db482 100644 --- a/include/libnuraft/async.hxx +++ b/include/libnuraft/async.hxx @@ -264,6 +264,8 @@ public: "Cannot find server."}, {cmd_result_code::CANNOT_REMOVE_LEADER, "Cannot remove leader."}, + {cmd_result_code::SERVER_IS_LEAVING, + "Server is leaving."}, {cmd_result_code::TERM_MISMATCH, "The current term does not match the expected term."}, {cmd_result_code::RESULT_NOT_EXIST_YET,