]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: api adjustment following a rebase 5717/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 29 Jun 2015 22:35:04 +0000 (15:35 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 30 Aug 2015 15:56:00 +0000 (17:56 +0200)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 7cf1f376e7dbc98a44f4a8e78bfa11f84291a941)

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

index 257dd8074f3953287653496024cc0f6105e28b40..2818d79fc38e4cb0c2587ca8775e1a185db73be5 100644 (file)
@@ -112,7 +112,7 @@ int RGWOrphanStore::remove_job(const string& job_name)
 int RGWOrphanStore::init()
 {
   const char *log_pool = store->get_zone_params().log_pool.name.c_str();
-  librados::Rados *rados = store->get_rados();
+  librados::Rados *rados = store->get_rados_handle();
   int r = rados->ioctx_create(log_pool, ioctx);
   if (r < 0) {
     cerr << "ERROR: failed to open log pool (" << store->get_zone_params().log_pool.name << " ret=" << r << std::endl;
@@ -251,7 +251,7 @@ int RGWOrphanSearch::log_oids(map<int, string>& log_shards, map<int, list<string
 
 int RGWOrphanSearch::build_all_oids_index()
 {
-  librados::Rados *rados = store->get_rados();
+  librados::Rados *rados = store->get_rados_handle();
 
   librados::IoCtx ioctx;
 
@@ -623,7 +623,7 @@ int RGWOrphanSearch::compare_oid_indexes()
 
   librados::IoCtx data_ioctx;
 
-  librados::Rados *rados = store->get_rados();
+  librados::Rados *rados = store->get_rados_handle();
 
   int ret = rados->ioctx_create(search_info.pool.c_str(), data_ioctx);
   if (ret < 0) {
index 302124ac9d42a74e5c0e1271cb7e2aa5b35f2c91..08a6896fb164ce9500f3037c0fce04bcb90a3496 100644 (file)
@@ -1271,8 +1271,6 @@ public:
                rest_master_conn(NULL),
                meta_mgr(NULL), data_log(NULL) {}
 
-  librados::Rados *get_rados() { return rados; }
-
   uint64_t get_new_req_id() {
     return max_req_id.inc();
   }
@@ -2124,6 +2122,8 @@ public:
     return zone_public_config.log_meta;
   }
 
+  librados::Rados* get_rados_handle();
+
  private:
   /**
    * This is a helper method, it generates a list of bucket index objects with the given
@@ -2196,8 +2196,6 @@ public:
 
   uint64_t instance_id();
   uint64_t next_bucket_id();
-
-  librados::Rados* get_rados_handle();
 };
 
 class RGWStoreManager {