From: Oguzhan Ozmen Date: Mon, 24 Nov 2025 21:01:17 +0000 (+0000) Subject: RGW/datalog: do not try to add entry if changeslog is shutting down X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=97501cb49f245656654dd62c4f09bc0b03a55c1c;p=ceph.git RGW/datalog: do not try to add entry if changeslog is shutting down When handling shutdown, backends are reset. As a result, accessing them can result in derefencing nullptr. See https://tracker.ceph.com/issues/66100#note-6 for details. Fixes: https://tracker.ceph.com/issues/66100 Signed-off-by: Oguzhan Ozmen --- diff --git a/src/rgw/driver/rados/rgw_datalog.cc b/src/rgw/driver/rados/rgw_datalog.cc index a1d803cea77a..a8bd435ccead 100644 --- a/src/rgw/driver/rados/rgw_datalog.cc +++ b/src/rgw/driver/rados/rgw_datalog.cc @@ -890,7 +890,7 @@ void RGWDataChangesLog::add_entry(const DoutPrefixProvider* dpp, const rgw::bucket_log_layout_generation& gen, int shard_id, asio::yield_context y) { - if (!log_data) { + if (!log_data || down_flag) { return; }