diff --git a/gms/gossiper.cc b/gms/gossiper.cc index 82e9d9725a..10ba83b69a 100644 --- a/gms/gossiper.cc +++ b/gms/gossiper.cc @@ -1659,7 +1659,7 @@ future<> gossiper::stop() { return make_ready_future(); } -bool gossiper::is_enabled() { +bool gossiper::is_enabled() const { return _enabled; } @@ -1673,7 +1673,7 @@ void gossiper::finish_shadow_round() { } } -bool gossiper::is_in_shadow_round() { +bool gossiper::is_in_shadow_round() const { return _in_shadow_round; } diff --git a/gms/gossiper.hh b/gms/gossiper.hh index 75aacecfca..eda5e4fd79 100644 --- a/gms/gossiper.hh +++ b/gms/gossiper.hh @@ -494,11 +494,11 @@ public: future<> do_stop_gossiping(); public: - bool is_enabled(); + bool is_enabled() const; void finish_shadow_round(); - bool is_in_shadow_round(); + bool is_in_shadow_round() const; void goto_shadow_round();