]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix bluestore_wal_transaction_t encoding test 7419/head
authorKefu Chai <kchai@redhat.com>
Mon, 25 Jan 2016 07:08:02 +0000 (15:08 +0800)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 29 Jan 2016 06:27:11 +0000 (16:27 +1000)
bluestore_wal_op_t::op is encoded/dumped but it is not
initialized in its ctor. so set it to 0 in its ctor. 0 is not an
valid op though, but it helps with debugging and testing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/os/bluestore/bluestore_types.h

index abe31f284cff4f3593f913eb72fc039847ac6023..c07412dab72ad2a431049293af633662ac42de17 100644 (file)
@@ -258,7 +258,7 @@ struct bluestore_wal_op_t {
     OP_COPY = 2,
     OP_ZERO = 4,
   } type_t;
-  __u8 op;
+  __u8 op = 0;
   bluestore_extent_t extent;
   bluestore_extent_t src_extent;
   uint64_t src_rmw_head, src_rmw_tail;