]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove never-called RGWRados member function
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 16 Nov 2018 22:08:46 +0000 (17:08 -0500)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 6 Mar 2019 15:51:28 +0000 (16:51 +0100)
Because RGWRados::cls_rgw_init_index is never called, remove it.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 4593778c6d830a1a0d33528507f1795aee019ce4)

src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

index 005f7779049ef18777a43271bb9bc4a9aa5f6925..3438dfa793cd364e41f73c6772a7e072b5e9d53a 100644 (file)
@@ -13088,13 +13088,6 @@ bool RGWRados::process_expire_objects()
   return obj_expirer->inspect_all_shards(utime_t(), ceph_clock_now());
 }
 
-int RGWRados::cls_rgw_init_index(librados::IoCtx& index_ctx, librados::ObjectWriteOperation& op, string& oid)
-{
-  bufferlist in;
-  cls_rgw_bucket_init_index(op);
-  return index_ctx.operate(oid, &op);
-}
-
 int RGWRados::cls_obj_prepare_op(BucketShard& bs, RGWModifyOp op, string& tag,
                                  rgw_obj& obj, uint16_t bilog_flags, rgw_zone_set *_zones_trace)
 {
index 40bd38b2e26e7d88017b6015e5456b98c66d57a6..d31b1c613a52396ec297796f905164b419b741b5 100644 (file)
@@ -3546,7 +3546,6 @@ public:
   int put_linked_bucket_info(RGWBucketInfo& info, bool exclusive, ceph::real_time mtime, obj_version *pep_objv,
                             map<string, bufferlist> *pattrs, bool create_entry_point);
 
-  int cls_rgw_init_index(librados::IoCtx& io_ctx, librados::ObjectWriteOperation& op, string& oid);
   int cls_obj_prepare_op(BucketShard& bs, RGWModifyOp op, string& tag, rgw_obj& obj, uint16_t bilog_flags, rgw_zone_set *zones_trace = nullptr);
   int cls_obj_complete_op(BucketShard& bs, const rgw_obj& obj, RGWModifyOp op, string& tag, int64_t pool, uint64_t epoch,
                           rgw_bucket_dir_entry& ent, RGWObjCategory category, list<rgw_obj_index_key> *remove_objs, uint16_t bilog_flags, rgw_zone_set *zones_trace = nullptr);