]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop old osdmap compatibility cruft
authorSage Weil <sage@newdream.net>
Wed, 9 Dec 2009 18:21:04 +0000 (10:21 -0800)
committerSage Weil <sage@newdream.net>
Wed, 9 Dec 2009 18:27:56 +0000 (10:27 -0800)
This is old enough to have been superceded by a full disk format rev.

src/osd/OSDMap.h

index 21176dfb0c4516c6be50bdfd7a0f399f4958297b..948373f434d8b6f0b82f44cdc0c3ccd691199f91 100644 (file)
@@ -202,8 +202,7 @@ public:
       ::decode(new_up, p);
       ::decode(new_down, p);
       ::decode(new_weight, p);
-      if (v >= 2)
-       ::decode(new_pg_temp, p);
+      ::decode(new_pg_temp, p);
       
       // extended
       if (v >= 3)
@@ -212,12 +211,6 @@ public:
       ::decode(new_up_thru, p);
       ::decode(new_last_clean_interval, p);
       ::decode(new_lost, p);
-      if (v < 2) {
-       map<pg_t,uint32_t> new_pg_swap_primary;
-       list<pg_t> old_pg_swap_primary;
-       ::decode(new_pg_swap_primary, p);
-       ::decode(old_pg_swap_primary, p);
-      }
       ::decode(new_blacklist, p);
       ::decode(old_blacklist, p);
     }
@@ -639,10 +632,6 @@ private:
     for (map<int,nstring>::iterator i = pool_name.begin(); i != pool_name.end(); i++)
       name_pool[i->second] = i->first;
    
-    if (v < 2) {
-      map<pg_t,uint32_t> pg_swap_primary;
-      ::decode(pg_swap_primary, p);
-    }
     ::decode(blacklist, p);
   }