Skip to content

Commit e05a42f

Browse files
authored
Merge pull request ceph#51734 from cbodley/wip-61300
rgw: disable RGWDataChangesLog::add_entry() when log_data is off Reviewed-by: Shilpa Jagannath <[email protected]> Reviewed-by: Adam C. Emerson <[email protected]>
2 parents 3bc1ea5 + 4e730d0 commit e05a42f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rgw/driver/rados/rgw_datalog.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@ int RGWDataChangesLog::add_entry(const DoutPrefixProvider *dpp,
649649
const rgw::bucket_log_layout_generation& gen,
650650
int shard_id, optional_yield y)
651651
{
652+
if (!zone->log_data) {
653+
return 0;
654+
}
655+
652656
auto& bucket = bucket_info.bucket;
653657

654658
if (!filter_bucket(dpp, bucket, y)) {

0 commit comments

Comments
 (0)