Merge pull request #45357 from cbodley/wip-54531

rgw: disable RGWDataChangesLog::add_entry() when log_data is off

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
This commit is contained in:
Casey Bodley 2022-04-12 09:34:58 -04:00 committed by GitHub
commit d104ae541c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,6 +603,10 @@ std::string RGWDataChangesLog::get_oid(uint64_t gen_id, int i) const {
}
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)) {