]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: disable RGWDataChangesLog::add_entry() when log_data is off 59314/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 11 Mar 2022 00:03:59 +0000 (19:03 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 19 Aug 2024 16:27:57 +0000 (23:27 +0700)
commit672ddc02262b190793dbb87a313a884ffafac1ee
treed61bce4f4a80710b6e706630a2d871debac0d6bd
parent9d76c4217c629dbeb8d4b5fd101bc3856edd1252
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>
(cherry picked from commit 6eec5e35a4f3c8c7e9783e3706e893cabef5993f)
src/rgw/rgw_datalog.cc