Skip to content

Commit

Permalink
mon/Monitor.h: add const to member functions
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
  • Loading branch information
stiopaa1 committed Mar 26, 2017
1 parent 1732698 commit 49ee693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon/Monitor.h
Expand Up @@ -557,8 +557,8 @@ class Monitor : public Dispatcher,

public:
epoch_t get_epoch();
int get_leader() { return leader; }
const set<int>& get_quorum() { return quorum; }
int get_leader() const { return leader; }
const set<int>& get_quorum() const { return quorum; }
list<string> get_quorum_names() {
list<string> q;
for (set<int>::iterator p = quorum.begin(); p != quorum.end(); ++p)
Expand Down

0 comments on commit 49ee693

Please sign in to comment.