]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: disable RGWDataChangesLog::add_entry() when log_data is off 51734/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 11 Mar 2022 00:03:59 +0000 (19:03 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 24 May 2023 18:49:32 +0000 (14:49 -0400)
commit4e730d0fcb108a5a94c24f6e0eb660a59742e47d
tree7c3b8e080090cbd39ed03902a5115245729877d0
parent27270968c7bd9316f4e08107c5dea41f20962eae
rgw: disable RGWDataChangesLog::add_entry() when log_data is off

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/61300
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_datalog.cc