|
|
4ee10e |
From f1e404c33ad14f6784aa1926ae75fa49e614748e Mon Sep 17 00:00:00 2001
|
|
|
4ee10e |
From: Ming-Hung Tsai <mtsai@redhat.com>
|
|
|
4ee10e |
Date: Wed, 2 Jun 2021 12:14:34 +0800
|
|
|
4ee10e |
Subject: [PATCH 07/10] [all] Fix uninitialized class members
|
|
|
4ee10e |
|
|
|
4ee10e |
---
|
|
|
4ee10e |
era/restore_emitter.cc | 1 +
|
|
|
4ee10e |
thin-provisioning/metadata_dumper.cc | 10 +++++++---
|
|
|
4ee10e |
thin-provisioning/thin_delta.cc | 4 +++-
|
|
|
4ee10e |
3 files changed, 11 insertions(+), 4 deletions(-)
|
|
|
4ee10e |
|
|
|
4ee10e |
diff --git a/era/restore_emitter.cc b/era/restore_emitter.cc
|
|
|
4ee10e |
index c09fa66..7fbac7d 100644
|
|
|
4ee10e |
--- a/era/restore_emitter.cc
|
|
|
4ee10e |
+++ b/era/restore_emitter.cc
|
|
|
4ee10e |
@@ -14,6 +14,7 @@ namespace {
|
|
|
4ee10e |
: md_(md),
|
|
|
4ee10e |
in_superblock_(false),
|
|
|
4ee10e |
in_writeset_(false),
|
|
|
4ee10e |
+ era_(0),
|
|
|
4ee10e |
in_era_array_(false) {
|
|
|
4ee10e |
}
|
|
|
4ee10e |
|
|
|
4ee10e |
diff --git a/thin-provisioning/metadata_dumper.cc b/thin-provisioning/metadata_dumper.cc
|
|
|
4ee10e |
index 4feb40f..665c762 100644
|
|
|
4ee10e |
--- a/thin-provisioning/metadata_dumper.cc
|
|
|
4ee10e |
+++ b/thin-provisioning/metadata_dumper.cc
|
|
|
4ee10e |
@@ -180,7 +180,7 @@ namespace {
|
|
|
4ee10e |
// This is about classifying and summarising btree nodes. The use of a btree
|
|
|
4ee10e |
// node may not be obvious when inspecting it in isolation. But more information
|
|
|
4ee10e |
// may be gleaned by examining child and sibling nodes.
|
|
|
4ee10e |
-//
|
|
|
4ee10e |
+//
|
|
|
4ee10e |
// So the process is:
|
|
|
4ee10e |
// - scan every metadata block, summarising it's potential uses.
|
|
|
4ee10e |
// - repeatedly iterate those summaries until we can glean no more useful information.
|
|
|
4ee10e |
@@ -474,7 +474,7 @@ namespace {
|
|
|
4ee10e |
node_info get_internal_info(block_manager::read_ref &rr) {
|
|
|
4ee10e |
node_info info;
|
|
|
4ee10e |
info.b = rr.get_location();
|
|
|
4ee10e |
-
|
|
|
4ee10e |
+
|
|
|
4ee10e |
// values refer to blocks, so we should have infos for them.
|
|
|
4ee10e |
auto n = to_node<block_traits>(rr);
|
|
|
4ee10e |
::uint64_t key_low = 0;
|
|
|
4ee10e |
@@ -524,7 +524,7 @@ namespace {
|
|
|
4ee10e |
node_info info;
|
|
|
4ee10e |
info.b = rr.get_location();
|
|
|
4ee10e |
|
|
|
4ee10e |
- auto vsize = to_cpu<uint32_t>(hdr.value_size);
|
|
|
4ee10e |
+ auto vsize = to_cpu<uint32_t>(hdr.value_size);
|
|
|
4ee10e |
info.values = to_cpu<uint32_t>(hdr.nr_entries);
|
|
|
4ee10e |
|
|
|
4ee10e |
if (vsize == sizeof(device_details_traits::disk_type)) {
|
|
|
4ee10e |
@@ -645,6 +645,10 @@ namespace {
|
|
|
4ee10e |
public:
|
|
|
4ee10e |
mapping_emit_visitor(emitter::ptr e)
|
|
|
4ee10e |
: e_(e),
|
|
|
4ee10e |
+ origin_start_(0),
|
|
|
4ee10e |
+ dest_start_(0),
|
|
|
4ee10e |
+ time_(0),
|
|
|
4ee10e |
+ len_(0),
|
|
|
4ee10e |
in_range_(false) {
|
|
|
4ee10e |
}
|
|
|
4ee10e |
|
|
|
4ee10e |
diff --git a/thin-provisioning/thin_delta.cc b/thin-provisioning/thin_delta.cc
|
|
|
4ee10e |
index 5b31608..ee48dea 100644
|
|
|
4ee10e |
--- a/thin-provisioning/thin_delta.cc
|
|
|
4ee10e |
+++ b/thin-provisioning/thin_delta.cc
|
|
|
4ee10e |
@@ -259,7 +259,9 @@ namespace local {
|
|
|
4ee10e |
class simple_emitter : public diff_emitter {
|
|
|
4ee10e |
public:
|
|
|
4ee10e |
simple_emitter(indented_stream &out)
|
|
|
4ee10e |
- : diff_emitter(out) {
|
|
|
4ee10e |
+ : diff_emitter(out),
|
|
|
4ee10e |
+ vbegin_(0),
|
|
|
4ee10e |
+ vend_(0) {
|
|
|
4ee10e |
}
|
|
|
4ee10e |
|
|
|
4ee10e |
void left_only(uint64_t vbegin, uint64_t dbegin, uint64_t len) {
|
|
|
4ee10e |
--
|
|
|
4ee10e |
1.8.3.1
|
|
|
4ee10e |
|