]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: scale shards based on versioned() to cover suspended buckets
authorCasey Bodley <cbodley@redhat.com>
Wed, 29 Jan 2025 15:37:37 +0000 (10:37 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 5 Mar 2025 16:12:44 +0000 (11:12 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index d2abdb76c988e7ccb9c2089211c9f5d27e69e911..cbbdab282d69c67fdacdca398059f484f063c70c 100644 (file)
@@ -10827,7 +10827,7 @@ void RGWRados::calculate_preferred_shards(const DoutPrefixProvider* dpp,
   uint64_t max_objs_per_shard =
     cct->_conf.get_val<uint64_t>("rgw_max_objs_per_shard");
 
-  if (bucket_info.versioning_enabled()) {
+  if (bucket_info.versioned()) {
     // Since each versioned bucket requires 4 entries for the first object
     // and 2 additional entries for each additional object, we want to
     // trigger resharding sooner.