mirror of
https://github.com/ceph/ceph
synced 2025-02-05 18:03:54 +00:00
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:
commit
ca666eef3c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user