]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused RGWPeriod::use_next_epoch
authorCasey Bodley <cbodley@redhat.com>
Tue, 2 May 2017 13:46:44 +0000 (09:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 16 Jun 2017 17:34:47 +0000 (13:34 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

index 7c6c98821aca8e110e9c7d3d5d918af54bb67770..57bd608706e742b33f1213ea1c486824d67b3c11 100644 (file)
@@ -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) {
index 24bb8bb3cb12ef8d43b5938069f553dee44de8c9..1beb753e2aae3f98a321c23969262d467c093841 100644 (file)
@@ -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();