From 9ee941f153da32e0da29210a30f91ca8b9657c85 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 10 Jan 2016 18:34:57 +0800 Subject: [PATCH] os/bluestore: fix bluestore_wal_transaction_t encoding test bluestore_wal_transaction_t::seq is encoded/dumped but it is not initialized in its ctor. so set it to 0 in its ctor. Signed-off-by: Kefu Chai --- src/os/bluestore/bluestore_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 3e58bee70d48..abe31f284cff 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -279,7 +279,7 @@ WRITE_CLASS_ENCODER(bluestore_wal_op_t) /// writeahead-logged transaction struct bluestore_wal_transaction_t { - uint64_t seq; + uint64_t seq = 0; list ops; interval_set released; ///< allocations to release after wal -- 2.47.3