]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW/datalog: do not try to add entry if changeslog is shutting down
authorOguzhan Ozmen <oozmen@bloomberg.net>
Mon, 24 Nov 2025 21:01:17 +0000 (21:01 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Wed, 26 Nov 2025 03:38:28 +0000 (03:38 +0000)
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 <oozmen@bloomberg.net>
src/rgw/driver/rados/rgw_datalog.cc

index a1d803cea77a92af864843fc9418347401d9e60a..a8bd435ccead60e6b0366ed3bad824e5d70ac828 100644 (file)
@@ -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;
   }