From: Kefu Chai Date: Sun, 10 Jan 2016 10:34:57 +0000 (+0800) Subject: os/bluestore: fix bluestore_wal_transaction_t encoding test X-Git-Tag: v10.0.3~89^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ee941f153da32e0da29210a30f91ca8b9657c85;p=ceph.git 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 --- 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