From 40cd91cff794d4ce15cabfe1a4e1b5daf8dd31dc Mon Sep 17 00:00:00 2001 From: Kamil Braun Date: Mon, 15 Jan 2024 16:36:47 +0100 Subject: [PATCH] raft: server: pass `*_aborted` to `set_exception` call This looks like a minor oversight, in `server_impl::abort` there are multiple calls to `set_exception` on the different promises, only one of them would not receive `*_aborted`. --- raft/server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/server.cc b/raft/server.cc index 4271d1ee61..580674d758 100644 --- a/raft/server.cc +++ b/raft/server.cc @@ -1493,7 +1493,7 @@ future<> server_impl::abort(sstring reason) { } if (_state_change_promise) { - _state_change_promise->set_exception(stopped_error()); + _state_change_promise->set_exception(stopped_error(*_aborted)); } abort_snapshot_transfers();