]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mdsmap: initialize standby_for_rank
authorSage Weil <sage.weil@dreamhost.com>
Tue, 12 Apr 2011 21:00:24 +0000 (14:00 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 12 Apr 2011 21:14:14 +0000 (14:14 -0700)
This is initialized in MDSMonitor anyway; do so where for completeness.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDSMap.h

index 31713582e441550dc493c2efc6d6ffddb6904899..39f0b700c5e7f7d2ffbe7d020a4b8cda85f83a26 100644 (file)
@@ -110,7 +110,8 @@ public:
     string standby_for_name;
     set<int32_t> export_targets;
 
-    mds_info_t() : global_id(0), rank(-1), inc(0), state(STATE_STANDBY), state_seq(0) { }
+    mds_info_t() : global_id(0), rank(-1), inc(0), state(STATE_STANDBY), state_seq(0),
+                  standby_for_rank(MDS_NO_STANDBY_PREF) { }
 
     bool laggy() const { return !(laggy_since == utime_t()); }
     void clear_laggy() { laggy_since = utime_t(); }