]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore/BlueFS: use nullptr when appropriate
authorKefu Chai <tchaikov@gmail.com>
Fri, 30 May 2025 07:29:42 +0000 (15:29 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 30 May 2025 08:25:21 +0000 (16:25 +0800)
instead of using `0` to represent a nullptr, use nullptr for better
readability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/os/bluestore/BlueFS.h

index 8011292ebdc823dd9881b85a45b9f6660fbe14d5..a7e12e02e737a4c486b37c7675522378f30640b7 100644 (file)
@@ -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;