@@ -71,12 +71,10 @@ void test_stats(librados::IoCtx& ioctx, const string& oid, RGWObjCategory catego
7171}
7272
7373void index_prepare (librados::IoCtx& ioctx, const string& oid, RGWModifyOp index_op,
74- const string& tag, const cls_rgw_obj_key& key, const string& loc,
75- uint16_t bi_flags = 0 , bool log_op = true )
74+ const string& tag, const cls_rgw_obj_key& key, const string& loc)
7675{
7776 ObjectWriteOperation op;
78- rgw_zone_set zones_trace;
79- cls_rgw_bucket_prepare_op (op, index_op, tag, key, loc, log_op, bi_flags, zones_trace);
77+ cls_rgw_bucket_prepare_op (op, index_op, tag, key, loc);
8078 ASSERT_EQ (0 , ioctx.operate (oid, &op));
8179}
8280
@@ -465,8 +463,7 @@ TEST_F(cls_rgw, index_list)
465463 string tag = str_int (" tag" , i);
466464 string loc = str_int (" loc" , i);
467465
468- index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc,
469- 0 /* bi_flags */ , false /* log_op */ );
466+ index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc);
470467
471468 rgw_bucket_dir_entry_meta meta;
472469 meta.category = RGWObjCategory::None;
@@ -543,8 +540,7 @@ TEST_F(cls_rgw, index_list_delimited)
543540 string loc = str_int (" loc" , i);
544541 const string obj = str_int (p, i);
545542
546- index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc,
547- 0 /* bi_flags */ , false /* log_op */ );
543+ index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc);
548544
549545 index_complete (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, epoch, obj, meta,
550546 0 /* bi_flags */ , false /* log_op */ );
@@ -558,8 +554,7 @@ TEST_F(cls_rgw, index_list_delimited)
558554 string loc = str_int (" loc" , i);
559555 const string obj = p + str_int (" f" , i);
560556
561- index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc,
562- 0 /* bi_flags */ , false /* log_op */ );
557+ index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc);
563558
564559 index_complete (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, epoch, obj, meta,
565560 0 /* bi_flags */ , false /* log_op */ );
@@ -649,8 +644,7 @@ TEST_F(cls_rgw, bi_list)
649644 string obj = str_int (i % 4 ? " obj" : " об'єкт" , i);
650645 string tag = str_int (" tag" , i);
651646 string loc = str_int (" loc" , i);
652- index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc,
653- RGW_BILOG_FLAG_VERSIONED_OP);
647+ index_prepare (ioctx, bucket_oid, CLS_RGW_OP_ADD, tag, obj, loc);
654648
655649 rgw_bucket_dir_entry_meta meta;
656650 meta.category = RGWObjCategory::None;
0 commit comments