From ceef45a6fecf31eefed65305728f7aa81add987a Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Tue, 10 Oct 2017 16:25:53 +0100 Subject: [PATCH] gms/gossiper: Const-qualify functions Signed-off-by: Duarte Nunes --- gms/gossiper.cc | 4 ++-- gms/gossiper.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();