From: J. Eric Ivancich Date: Fri, 16 Nov 2018 22:08:46 +0000 (-0500) Subject: rgw: remove never-called RGWRados member function X-Git-Tag: v12.2.11~115^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7bee2dc3a94b206be74c1bf1788ba3a10c15bd6;p=ceph.git rgw: remove never-called RGWRados member function Because RGWRados::cls_rgw_init_index is never called, remove it. Signed-off-by: J. Eric Ivancich (cherry picked from commit 4593778c6d830a1a0d33528507f1795aee019ce4) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 88e6cca2e8cd..77babe4c13b8 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -13037,13 +13037,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) { diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index c8c654c5675d..12d42f680618 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -3519,7 +3519,6 @@ public: int put_linked_bucket_info(RGWBucketInfo& info, bool exclusive, ceph::real_time mtime, obj_version *pep_objv, map *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 *remove_objs, uint16_t bilog_flags, rgw_zone_set *zones_trace = nullptr);