From 0da7da8263bad535da2aa2b110cc54aaa6f1c36c Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 2 Jul 2013 18:01:09 -0700 Subject: [PATCH] unitests: fix compilation Signed-off-by: Yehuda Sadeh --- src/test/cls_log/test_cls_log.cc | 3 ++- src/test/cls_rgw/test_cls_rgw.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/cls_log/test_cls_log.cc b/src/test/cls_log/test_cls_log.cc index d79fa01064c8..a8d1b3d53007 100644 --- a/src/test/cls_log/test_cls_log.cc +++ b/src/test/cls_log/test_cls_log.cc @@ -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; diff --git a/src/test/cls_rgw/test_cls_rgw.cc b/src/test/cls_rgw/test_cls_rgw.cc index 59a2b14e9727..7a37deec1051 100644 --- a/src/test/cls_rgw/test_cls_rgw.cc +++ b/src/test/cls_rgw/test_cls_rgw.cc @@ -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)); } -- 2.47.3