Skip to content

Commit e00ec10

Browse files
committed
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 <[email protected]>
1 parent 3095ee1 commit e00ec10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/bluestore/BlueFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class BlueFS {
563563
struct {
564564
ceph::mutex lock = ceph::make_mutex("BlueFS::log.lock");
565565
uint64_t seq_live = 1; //seq that log is currently writing to; mirrors dirty.seq_live
566-
FileWriter *writer = 0;
566+
FileWriter *writer = nullptr;
567567
bluefs_transaction_t t;
568568
bool uses_envelope_mode = false; // true if any file is in envelope mode
569569
} log;

0 commit comments

Comments
 (0)