Skip to content

Commit

Permalink
mds/MDSRank: add const to member functions
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jarzabek <[email protected]>
  • Loading branch information
stiopaa1 committed Nov 1, 2016
1 parent ee5a43c commit 3e82fb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mds/MDSRank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ void MDSRank::heartbeat_reset()
g_ceph_context->get_heartbeat_map()->reset_timeout(hb, g_conf->mds_beacon_grace, 0);
}

bool MDSRank::is_stale_message(Message *m)
bool MDSRank::is_stale_message(Message *m) const
{
// from bad mds?
if (m->get_source().is_mds()) {
Expand Down
4 changes: 2 additions & 2 deletions src/mds/MDSRank.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class MDSRank {
ceph::heartbeat_handle_d *hb; // Heartbeat for threads using mds_lock
void heartbeat_reset();

bool is_stale_message(Message *m);
bool is_stale_message(Message *m) const;

map<mds_rank_t, version_t> peer_mdsmap_epoch;

Expand Down Expand Up @@ -362,7 +362,7 @@ class MDSRank {

MDSMap *get_mds_map() { return mdsmap; }

int get_req_rate() { return logger->get(l_mds_request); }
int get_req_rate() const { return logger->get(l_mds_request); }

int get_mds_slow_req_count() const { return mds_slow_req_count; }

Expand Down

0 comments on commit 3e82fb6

Please sign in to comment.