Skip to content

Commit

Permalink
os/bluestore: fix bluestore_wal_transaction_t encoding test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tchaikov committed Jan 10, 2016
1 parent 0c5e0c2 commit 2c636f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/bluestore_types.h
Expand Up @@ -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

Expand Down

0 comments on commit 2c636f0

Please sign in to comment.