From: J. Eric Ivancich Date: Wed, 7 Nov 2018 20:33:52 +0000 (-0500) Subject: rgw: rename function for clarity X-Git-Tag: v12.2.11~115^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad61045de37efa8e9cccdc66341ff41e18875c0e;p=ceph.git rgw: rename function for clarity The function cls_rgw_bucket_init was renamed to cls_rgw_bucket_init_index in order to better describe its functionality. Signed-off-by: J. Eric Ivancich (cherry picked from commit 20868bd3b893ba2e17d2bfdc63d6544dbe677a9b) --- diff --git a/src/cls/rgw/cls_rgw_client.cc b/src/cls/rgw/cls_rgw_client.cc index 5b09d45f78f..2144feb4ffc 100644 --- a/src/cls/rgw/cls_rgw_client.cc +++ b/src/cls/rgw/cls_rgw_client.cc @@ -92,7 +92,7 @@ bool BucketIndexAioManager::wait_for_completions(int valid_ret_code, return true; } -void cls_rgw_bucket_init(ObjectWriteOperation& o) +void cls_rgw_bucket_init_index(ObjectWriteOperation& o) { bufferlist in; o.exec(RGW_CLASS, RGW_BUCKET_INIT_INDEX, in); diff --git a/src/cls/rgw/cls_rgw_client.h b/src/cls/rgw/cls_rgw_client.h index 189c42da79d..d3d01ca3cfa 100644 --- a/src/cls/rgw/cls_rgw_client.h +++ b/src/cls/rgw/cls_rgw_client.h @@ -230,7 +230,7 @@ public: }; /* bucket index */ -void cls_rgw_bucket_init(librados::ObjectWriteOperation& o); +void cls_rgw_bucket_init_index(librados::ObjectWriteOperation& o); class CLSRGWConcurrentIO { protected: diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index ff2025c63f2..88e6cca2e8c 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -13040,7 +13040,7 @@ bool RGWRados::process_expire_objects() int RGWRados::cls_rgw_init_index(librados::IoCtx& index_ctx, librados::ObjectWriteOperation& op, string& oid) { bufferlist in; - cls_rgw_bucket_init(op); + cls_rgw_bucket_init_index(op); return index_ctx.operate(oid, &op); } diff --git a/src/test/cls_rgw/test_cls_rgw.cc b/src/test/cls_rgw/test_cls_rgw.cc index 2b51268fd3b..8fd46085390 100644 --- a/src/test/cls_rgw/test_cls_rgw.cc +++ b/src/test/cls_rgw/test_cls_rgw.cc @@ -116,7 +116,7 @@ TEST(cls_rgw, index_basic) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); uint64_t epoch = 1; @@ -150,7 +150,7 @@ TEST(cls_rgw, index_multiple_obj_writers) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); uint64_t obj_size = 1024; @@ -187,7 +187,7 @@ TEST(cls_rgw, index_remove_object) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); uint64_t obj_size = 1024; @@ -279,7 +279,7 @@ TEST(cls_rgw, index_suggest) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); uint64_t total_size = 0; @@ -390,7 +390,7 @@ TEST(cls_rgw, index_list) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); uint64_t epoch = 1; @@ -452,7 +452,7 @@ TEST(cls_rgw, bi_list) OpMgr mgr; ObjectWriteOperation *op = mgr.write_op(); - cls_rgw_bucket_init(*op); + cls_rgw_bucket_init_index(*op); ASSERT_EQ(0, ioctx.operate(bucket_oid, op)); string name;