]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: disable RGWDataChangesLog::add_entry() when log_data is off 45357/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 11 Mar 2022 00:03:59 +0000 (19:03 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 11 Mar 2022 14:20:21 +0000 (09:20 -0500)
commit6eec5e35a4f3c8c7e9783e3706e893cabef5993f
tree7f3e68b17b737aa13fe79e01fd3d60bb9479095b
parent21928dd489df1dbbb8e14d39e3be870ac7b0c627
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/54531
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_datalog.cc