From 5770a01ebe8b5913cb5446bd4fd09d8029ac1381 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 2 May 2017 09:46:44 -0400 Subject: [PATCH] rgw: remove unused RGWPeriod::use_next_epoch Signed-off-by: Casey Bodley --- src/rgw/rgw_rados.cc | 22 ---------------------- src/rgw/rgw_rados.h | 1 - 2 files changed, 23 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7c6c98821aca..57bd608706e7 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1300,28 +1300,6 @@ rgw_pool RGWPeriod::get_pool(CephContext *cct) return rgw_pool(cct->_conf->rgw_period_root_pool); } -int RGWPeriod::use_next_epoch() -{ - epoch_t latest_epoch; - int ret = get_latest_epoch(latest_epoch); - if (ret < 0) { - return ret; - } - epoch = latest_epoch + 1; - ret = read_info(); - if (ret < 0 && ret != -ENOENT) { - return ret; - } - if (ret == -ENOENT) { - ret = create(); - if (ret < 0) { - ldout(cct, 0) << "Error creating new epoch " << epoch << dendl; - return ret; - } - } - return 0; -} - int RGWPeriod::add_zonegroup(const RGWZoneGroup& zonegroup) { if (zonegroup.realm_id != realm_id) { diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 24bb8bb3cb12..1beb753e2aae 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1877,7 +1877,6 @@ public: int init(CephContext *_cct, RGWRados *_store, const string &period_realm_id, const string &period_realm_name = "", bool setup_obj = true); int init(CephContext *_cct, RGWRados *_store, bool setup_obj = true); - int use_next_epoch(); int create(bool exclusive = true); int delete_obj(); -- 2.47.3