From: Casey Bodley Date: Tue, 2 Feb 2016 21:03:28 +0000 (-0500) Subject: rgw: remove unused class RGWReadMDLogShardInfo X-Git-Tag: v10.1.0~354^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c13e7ee74afc91f0aa6f824d855b5782469831e3;p=ceph.git rgw: remove unused class RGWReadMDLogShardInfo Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index dfcaf16c54ae..7154c1cd68fb 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -346,34 +346,6 @@ string RGWMetaSyncEnv::shard_obj_name(int shard_id) return string(buf); } -class RGWReadMDLogShardInfo : public RGWSimpleCoroutine { - RGWRados *store; - RGWMetadataLog *mdlog; - int req_ret; - - int shard_id; - RGWMetadataLogInfo *shard_info; -public: - RGWReadMDLogShardInfo(RGWRados *_store, int _shard_id, RGWMetadataLogInfo *_shard_info) : RGWSimpleCoroutine(_store->ctx()), - store(_store), mdlog(store->meta_mgr->get_log()), - req_ret(0), shard_id(_shard_id), shard_info(_shard_info) { - } - - int send_request() { - int ret = mdlog->get_info_async(shard_id, shard_info, stack->get_completion_mgr(), (void *)stack, &req_ret); - if (ret < 0) { - ldout(store->ctx(), 0) << "ERROR: mdlog->get_info_async() returned ret=" << ret << dendl; - return set_cr_error(ret); - } - - return 0; - } - - int request_complete() { - return req_ret; - } -}; - class RGWAsyncReadMDLogEntries : public RGWAsyncRadosRequest { RGWRados *store; RGWMetadataLog *mdlog;