this restores a check for RGWZone::log_data in add_entry(). with
per-bucket replication, this check was replaced by a call to
`RGWBucketSyncPolicyHandler::bucket_exports_data()`
this call has to consult two rados objects,
`bucket.sync-source-hints.<bucketname>` and
`bucket.sync-target-hints.<bucketname>`
but if the zone is not configured for multisite, we should avoid these
extra object reads and return early
Fixes: https://tracker.ceph.com/issues/54531
Signed-off-by: Casey Bodley <cbodley@redhat.com>
}
int RGWDataChangesLog::add_entry(const DoutPrefixProvider *dpp, const RGWBucketInfo& bucket_info, int shard_id) {
+ if (!zone->log_data) {
+ return 0;
+ }
+
auto& bucket = bucket_info.bucket;
if (!filter_bucket(dpp, bucket, null_yield)) {