@@ -52,7 +52,7 @@ string str_int(string s, int i)
5252 return s;
5353}
5454
55- void test_stats (librados::IoCtx& ioctx, string& oid, RGWObjCategory category, uint64_t num_entries, uint64_t total_size)
55+ void test_stats (librados::IoCtx& ioctx, const string& oid, RGWObjCategory category, uint64_t num_entries, uint64_t total_size)
5656{
5757 map<int , struct rgw_cls_list_ret > results;
5858 map<int , string> oids;
@@ -70,8 +70,8 @@ void test_stats(librados::IoCtx& ioctx, string& oid, RGWObjCategory category, ui
7070 ASSERT_EQ (num_entries, entries);
7171}
7272
73- void index_prepare (librados::IoCtx& ioctx, string& oid, RGWModifyOp index_op,
74- string& tag, const cls_rgw_obj_key& key, string& loc,
73+ void index_prepare (librados::IoCtx& ioctx, const string& oid, RGWModifyOp index_op,
74+ const string& tag, const cls_rgw_obj_key& key, const string& loc,
7575 uint16_t bi_flags = 0 , bool log_op = true )
7676{
7777 ObjectWriteOperation op;
@@ -80,8 +80,8 @@ void index_prepare(librados::IoCtx& ioctx, string& oid, RGWModifyOp index_op,
8080 ASSERT_EQ (0 , ioctx.operate (oid, &op));
8181}
8282
83- void index_complete (librados::IoCtx& ioctx, string& oid, RGWModifyOp index_op,
84- string& tag, int epoch, const cls_rgw_obj_key& key,
83+ void index_complete (librados::IoCtx& ioctx, const string& oid, RGWModifyOp index_op,
84+ const string& tag, int epoch, const cls_rgw_obj_key& key,
8585 rgw_bucket_dir_entry_meta& meta, uint16_t bi_flags = 0 ,
8686 bool log_op = true )
8787{
0 commit comments