From: Yehuda Sadeh Date: Wed, 7 Feb 2018 21:23:36 +0000 (-0800) Subject: rgw: use explicit index pool placement X-Git-Tag: v13.0.2~158^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f32134f6d6bafa2ee6c948804a66cbe310b7876;p=ceph.git rgw: use explicit index pool placement Fixes: http://tracker.ceph.com/issues/22928 If explicit placement is set, it overrides placement_target. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 4c595fba85799..33e39bc340937 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -4881,6 +4881,12 @@ void RGWRados::build_bucket_index_marker(const string& shard_id_str, const strin int RGWRados::open_bucket_index_ctx(const RGWBucketInfo& bucket_info, librados::IoCtx& index_ctx) { + const rgw_pool& explicit_pool = bucket_info.bucket.explicit_placement.index_pool; + + if (!explicit_pool.empty()) { + return open_pool_ctx(explicit_pool, index_ctx); + } + const string *rule = &bucket_info.placement_rule; if (rule->empty()) { rule = &zonegroup.default_placement;