From e00ec10b114a2b52d5653b3e62802af2c93182b3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 30 May 2025 15:29:42 +0800 Subject: [PATCH] os/bluestore/BlueFS: use nullptr when appropriate instead of using `0` to represent a nullptr, use nullptr for better readability. Signed-off-by: Kefu Chai --- src/os/bluestore/BlueFS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueFS.h b/src/os/bluestore/BlueFS.h index 8011292ebdc..a7e12e02e73 100644 --- a/src/os/bluestore/BlueFS.h +++ b/src/os/bluestore/BlueFS.h @@ -563,7 +563,7 @@ private: struct { ceph::mutex lock = ceph::make_mutex("BlueFS::log.lock"); uint64_t seq_live = 1; //seq that log is currently writing to; mirrors dirty.seq_live - FileWriter *writer = 0; + FileWriter *writer = nullptr; bluefs_transaction_t t; bool uses_envelope_mode = false; // true if any file is in envelope mode } log; -- 2.39.5