]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
unitests: fix compilation
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 3 Jul 2013 01:01:09 +0000 (18:01 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 3 Jul 2013 01:01:09 +0000 (18:01 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/test/cls_log/test_cls_log.cc
src/test/cls_rgw/test_cls_rgw.cc

index d79fa01064c82271ea697743394c4752f360c937..a8d1b3d53007b92d067b7e7e9889bf1327c4784a 100644 (file)
@@ -330,8 +330,9 @@ TEST(cls_rgw, test_log_trim)
     utime_t trim_time = get_time(start_time, i, true);
 
     utime_t zero_time;
+    string start_marker, end_marker;
 
-    ASSERT_EQ(0, cls_log_trim(ioctx, oid, zero_time, trim_time));
+    ASSERT_EQ(0, cls_log_trim(ioctx, oid, zero_time, trim_time, start_marker, end_marker));
 
     string marker;
 
index 59a2b14e97272fa3fdb1a48549aa337e152dde7a..7a37deec10512f66293a940a27aa0cdc407a3934 100644 (file)
@@ -77,7 +77,7 @@ void test_stats(librados::IoCtx& ioctx, string& oid, int category, uint64_t num_
 void index_prepare(OpMgr& mgr, librados::IoCtx& ioctx, string& oid, RGWModifyOp index_op, string& tag, string& obj, string& loc)
 {
   ObjectWriteOperation *op = mgr.write_op();
-  cls_rgw_bucket_prepare_op(*op, index_op, tag, obj, loc);
+  cls_rgw_bucket_prepare_op(*op, index_op, tag, obj, loc, true);
   ASSERT_EQ(0, ioctx.operate(oid, op));
 }
 
@@ -87,7 +87,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;
-  cls_rgw_bucket_complete_op(*op, index_op, tag, ver, obj, meta, NULL);
+  cls_rgw_bucket_complete_op(*op, index_op, tag, ver, obj, meta, NULL, true);
   ASSERT_EQ(0, ioctx.operate(oid, op));
 }