summaryrefslogtreecommitdiffstats
path: root/src/mds/Beacon.h
diff options
context:
space:
mode:
authorJohn Spray <john.spray@redhat.com>2014-09-18 20:31:43 +0200
committerJohn Spray <john.spray@redhat.com>2014-10-08 12:58:18 +0200
commitf93bf3853f5edbdd0392a80e6cb5ffe37de5f484 (patch)
treea42d5638c0b3af8b4e0dc05daa74ed622101b056 /src/mds/Beacon.h
parentMerge pull request #2668 from theanalyst/fix/mailmap-again (diff)
downloadceph-f93bf3853f5edbdd0392a80e6cb5ffe37de5f484.tar.xz
ceph-f93bf3853f5edbdd0392a80e6cb5ffe37de5f484.zip
mds: typedefs for rank and gid in MDSMap
Make it clearer what these numbers are where they appear. Signed-off-by: John Spray <john.spray@redhat.com>
Diffstat (limited to 'src/mds/Beacon.h')
-rw-r--r--src/mds/Beacon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mds/Beacon.h b/src/mds/Beacon.h
index 9148366d94f..4336d1a0b3b 100644
--- a/src/mds/Beacon.h
+++ b/src/mds/Beacon.h
@@ -48,7 +48,7 @@ class Beacon : public Dispatcher
std::string name;
version_t epoch;
CompatSet compat;
- int standby_for_rank;
+ mds_rank_t standby_for_rank;
std::string standby_for_name;
MDSMap::DaemonState want_state;
@@ -83,7 +83,7 @@ public:
Beacon(CephContext *cct_, MonClient *monc_, std::string name);
~Beacon();
- void init(MDSMap const *mdsmap, MDSMap::DaemonState want_state_, int standby_rank_, std::string const &standby_name_);
+ void init(MDSMap const *mdsmap, MDSMap::DaemonState want_state_, mds_rank_t standby_rank_, std::string const &standby_name_);
void shutdown();
bool ms_dispatch(Message *m);
@@ -95,7 +95,7 @@ public:
void notify_want_state(MDSMap::DaemonState const newstate);
void notify_health(MDS const *mds);
- void set_standby_for(int rank_, std::string const &name_);
+ void set_standby_for(mds_rank_t rank_, std::string const &name_);
void handle_mds_beacon(MMDSBeacon *m);
void send();