]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest_log.cc
update sources to 12.2.7
[ceph.git] / ceph / src / rgw / rgw_rest_log.cc
index 47d4e3e7a8141446da63082ea59f9d0249118f12..6824fd791ba7b180d5ec3f1681fd6dddbb61e8e3 100644 (file)
@@ -906,7 +906,15 @@ void RGWOp_BILog_Status::execute()
     return;
   }
 
-  http_ret = rgw_bucket_sync_status(store, source_zone, bucket, &status);
+  // read the bucket instance info for num_shards
+  RGWObjectCtx ctx(store);
+  RGWBucketInfo info;
+  http_ret = store->get_bucket_instance_info(ctx, bucket, info, nullptr, nullptr);
+  if (http_ret < 0) {
+    ldout(s->cct, 4) << "failed to read bucket info: " << cpp_strerror(http_ret) << dendl;
+    return;
+  }
+  http_ret = rgw_bucket_sync_status(store, source_zone, info, &status);
 }
 
 void RGWOp_BILog_Status::send_response()