From: Yehuda Sadeh Date: Mon, 29 Jun 2015 22:35:04 +0000 (-0700) Subject: rgw: api adjustment following a rebase X-Git-Tag: v9.0.3~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5109%2Fhead;p=ceph.git rgw: api adjustment following a rebase Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index 257dd8074f39..2818d79fc38e 100644 --- a/src/rgw/rgw_orphan.cc +++ b/src/rgw/rgw_orphan.cc @@ -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& log_shards, mapget_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) { diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 0e89bb5b1327..65a6b3e7fe78 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -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(); } @@ -2120,6 +2118,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 @@ -2192,8 +2192,6 @@ public: uint64_t instance_id(); uint64_t next_bucket_id(); - - librados::Rados* get_rados_handle(); }; class RGWStoreManager {