]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/cls_rgw: fix test 3594/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 3 Feb 2015 01:10:19 +0000 (17:10 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 3 Feb 2015 01:10:19 +0000 (17:10 -0800)
Test needed to be updated, now using meta.accounted_size for object
size.

Fixes: #10707
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/test/cls_rgw/test_cls_rgw.cc

index 64845a0b2fa0d95a1ea46411fc0333087d194384..22f137dd284f95de2c7328aca86335beb73e5d06 100644 (file)
@@ -99,6 +99,7 @@ void index_complete(OpMgr& mgr, librados::IoCtx& ioctx, string& oid, RGWModifyOp
   rgw_bucket_entry_ver ver;
   ver.pool = ioctx.get_id();
   ver.epoch = epoch;
+  meta.accounted_size = meta.size;
   cls_rgw_bucket_complete_op(*op, index_op, tag, ver, key, meta, NULL, true, 0);
   ASSERT_EQ(0, ioctx.operate(oid, op));
 }
@@ -346,6 +347,7 @@ TEST(cls_rgw, index_suggest)
     dirent.locator = loc;
     dirent.exists = (i < num_objs / 2); // we removed half the objects
     dirent.meta.size = 1024;
+    dirent.meta.accounted_size = 1024;
 
     char suggest_op = (i < num_objs / 2 ? CEPH_RGW_UPDATE : CEPH_RGW_REMOVE);
     cls_rgw_encode_suggestion(suggest_op, dirent, updates);