]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add export targest to mds_info_t
authorSage Weil <sage@newdream.net>
Tue, 29 Sep 2009 04:16:02 +0000 (21:16 -0700)
committerSage Weil <sage@newdream.net>
Tue, 29 Sep 2009 04:16:02 +0000 (21:16 -0700)
src/mds/MDSMap.h

index 1cb1f83b9ed3cdf702ef8fe4d831647a0ffe59c3..eb611e1eff57596f887b1c7864ba914f4947d637 100644 (file)
@@ -86,6 +86,7 @@ public:
     utime_t laggy_since;
     int standby_for_rank;
     string standby_for_name;
+    set<int> export_targets;
 
     mds_info_t() : rank(-1), inc(0), state(STATE_STANDBY), state_seq(0) { }
 
@@ -95,7 +96,7 @@ public:
     entity_inst_t get_inst() const { return entity_inst_t(entity_name_t::MDS(rank), addr); }
 
     void encode(bufferlist& bl) const {
-      __u8 v = 1;
+      __u8 v = 2;
       ::encode(v, bl);
       ::encode(name, bl);
       ::encode(rank, bl);
@@ -106,6 +107,7 @@ public:
       ::encode(laggy_since, bl);
       ::encode(standby_for_rank, bl);
       ::encode(standby_for_name, bl);
+      ::encode(export_targets, bl);
     }
     void decode(bufferlist::iterator& bl) {
       __u8 v;
@@ -119,6 +121,8 @@ public:
       ::decode(laggy_since, bl);
       ::decode(standby_for_rank, bl);
       ::decode(standby_for_name, bl);
+      if (v >= 2)
+       ::decode(export_targets, bl);
     }
   };