From 08219a60b683c4487b8690b0dda44aaaf3b1e4a6 Mon Sep 17 00:00:00 2001 From: Ming-Hung Tsai Date: Sat, 5 Mar 2016 13:59:24 +0800 Subject: [PATCH] [thin] Add default constructor to struct device_details --- thin-provisioning/device_tree.cc | 7 +++++++ thin-provisioning/device_tree.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/thin-provisioning/device_tree.cc b/thin-provisioning/device_tree.cc index 223d816..4837cb7 100644 --- a/thin-provisioning/device_tree.cc +++ b/thin-provisioning/device_tree.cc @@ -47,6 +47,13 @@ namespace { namespace thin_provisioning { namespace device_tree_detail { + device_details::device_details() + : mapped_blocks_(0), + transaction_id_(0), + creation_time_(0), + snapshotted_time_(0) { + } + void device_details_traits::unpack(device_details_disk const &disk, device_details &value) { diff --git a/thin-provisioning/device_tree.h b/thin-provisioning/device_tree.h index 23ae924..ef32b45 100644 --- a/thin-provisioning/device_tree.h +++ b/thin-provisioning/device_tree.h @@ -20,6 +20,8 @@ namespace thin_provisioning { uint64_t transaction_id_; /* when created */ uint32_t creation_time_; uint32_t snapshotted_time_; + + device_details(); }; struct device_details_traits {