]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: fix encoding for cls_rgw_obj
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 29 Jan 2015 17:28:14 +0000 (09:28 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 29 Jan 2015 17:31:35 +0000 (09:31 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/cls/rgw/cls_rgw_types.h

index 237c45277eac922ee716678fdcaccf2990a989af..a5f10e303d6c5531f6ce3cb1c8ce4f8ec376b3b4 100644 (file)
@@ -780,6 +780,7 @@ struct cls_rgw_obj {
     ::encode(pool, bl);
     ::encode(key.name, bl);
     ::encode(loc, bl);
+    ::encode(key, bl);
     ENCODE_FINISH(bl);
   }
 
@@ -789,7 +790,7 @@ struct cls_rgw_obj {
     ::decode(key.name, bl);
     ::decode(loc, bl);
     if (struct_v >= 2) {
-      ::decode(key.instance, bl);
+      ::decode(key, bl);
     }
     DECODE_FINISH(bl);
   }