]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:fix rgw boot failed after upgrade to master latest version 10409/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Sat, 23 Jul 2016 07:49:48 +0000 (15:49 +0800)
committerweiqiaomiao <wei.qiaomiao@zte.com.cn>
Thu, 28 Jul 2016 02:29:25 +0000 (10:29 +0800)
Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_rados.h

index 4af138f04836ecc9824263f6877586137db66225..27082b8830d3228c405719fdffee10729d53ed37 100644 (file)
@@ -895,11 +895,10 @@ struct RGWZoneParams : RGWSystemMetaObj {
   int fix_pool_names();
   
   void encode(bufferlist& bl) const {
-    ENCODE_START(6, 1, bl);
+    ENCODE_START(7, 1, bl);
     ::encode(domain_root, bl);
     ::encode(control_pool, bl);
     ::encode(gc_pool, bl);
-    ::encode(lc_pool, bl);
     ::encode(log_pool, bl);
     ::encode(intent_log_pool, bl);
     ::encode(usage_log_pool, bl);
@@ -912,15 +911,15 @@ struct RGWZoneParams : RGWSystemMetaObj {
     ::encode(placement_pools, bl);
     ::encode(metadata_heap, bl);
     ::encode(realm_id, bl);
+    ::encode(lc_pool, bl);
     ENCODE_FINISH(bl);
   }
 
   void decode(bufferlist::iterator& bl) {
-    DECODE_START(6, bl);
+    DECODE_START(7, bl);
     ::decode(domain_root, bl);
     ::decode(control_pool, bl);
     ::decode(gc_pool, bl);
-    ::decode(lc_pool, bl);
     ::decode(log_pool, bl);
     ::decode(intent_log_pool, bl);
     ::decode(usage_log_pool, bl);
@@ -943,6 +942,11 @@ struct RGWZoneParams : RGWSystemMetaObj {
     if (struct_v >= 6) {
       ::decode(realm_id, bl);
     }
+    if (struct_v >= 7) {
+      ::decode(lc_pool, bl);
+    } else {
+      lc_pool = name + ".rgw.lc";
+    }
     DECODE_FINISH(bl);
   }
   void dump(Formatter *f) const;