From cecfb6dfd732f89691d1964d27df921d93598e9f Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Sun, 16 Mar 2025 18:19:21 +0200 Subject: [PATCH] gms: gossiper: use named gate Signed-off-by: Benny Halevy --- gms/gossiper.cc | 2 +- gms/gossiper.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gms/gossiper.cc b/gms/gossiper.cc index 9d62d88df7..f408d02ace 100644 --- a/gms/gossiper.cc +++ b/gms/gossiper.cc @@ -2063,7 +2063,7 @@ future<> gossiper::start_gossiping(gms::generation_type generation_nbr, applicat if (!_background_msg.is_closed()) { co_await _background_msg.close(); } - _background_msg = seastar::gate(); + _background_msg = seastar::named_gate("gossiper"); /* Ensure all shards have enabled gossip before starting the failure detector loop */ co_await container().invoke_on_all([] (gms::gossiper& g) { g._enabled = true; diff --git a/gms/gossiper.hh b/gms/gossiper.hh index 1677277a1b..bd3f579a94 100644 --- a/gms/gossiper.hh +++ b/gms/gossiper.hh @@ -116,7 +116,7 @@ private: bool _enabled = false; semaphore _callback_running{1}; semaphore _apply_state_locally_semaphore{100}; - seastar::gate _background_msg; + seastar::named_gate _background_msg; std::unordered_map _syn_handlers; std::unordered_map _ack_handlers; // Map ip address and generation number