Merge pull request #20352 from yehudasa/wip-22928

rgw: use explicit index pool placement

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Yuri Weinstein 2018-02-27 09:48:16 -08:00 committed by GitHub
commit ca666eef3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4900,6 +4900,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;