]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix bluestore_wal_transaction_t encoding test 7168/head
authorKefu Chai <kchai@redhat.com>
Sun, 10 Jan 2016 10:34:57 +0000 (18:34 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 10 Jan 2016 13:22:07 +0000 (21:22 +0800)
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 <kchai@redhat.com>
src/os/bluestore/bluestore_types.h

index 3e58bee70d48af90cfd63ce30f77068785df640b..abe31f284cff4f3593f913eb72fc039847ac6023 100644 (file)
@@ -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<bluestore_wal_op_t> ops;
   interval_set<uint64_t> released;  ///< allocations to release after wal