aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Peters <[email protected]>2024-10-04 05:25:57 -0600
committerGitHub Enterprise <[email protected]>2024-10-04 05:25:57 -0600
commita1a69473979bd1ae4edc7565a4d79446d2f27182 (patch)
treeba4c7d96e7638db8ba5c322b24ca253081a1dd00 /src
parentadd automatic decompression to cache-get (default on) and oplog-mirror (defau... (diff)
downloadzen-a1a69473979bd1ae4edc7565a4d79446d2f27182.tar.xz
zen-a1a69473979bd1ae4edc7565a4d79446d2f27182.zip
Mrp/referencedset (#174)
* zen.exe commands: Add initializers for all POD types; this fixes incorrect behavior for flags in debug * README.md: Fix typo in --no-dry-run line
Diffstat (limited to 'src')
-rw-r--r--src/zen/cmds/admin_cmd.h2
-rw-r--r--src/zen/cmds/cache_cmd.h6
-rw-r--r--src/zen/cmds/projectstore_cmd.h10
-rw-r--r--src/zen/cmds/status_cmd.h2
-rw-r--r--src/zen/cmds/trace_cmd.h2
-rw-r--r--src/zen/cmds/up_cmd.h6
-rw-r--r--src/zen/cmds/version_cmd.h2
7 files changed, 15 insertions, 15 deletions
diff --git a/src/zen/cmds/admin_cmd.h b/src/zen/cmds/admin_cmd.h
index a8c38d31e..e42081745 100644
--- a/src/zen/cmds/admin_cmd.h
+++ b/src/zen/cmds/admin_cmd.h
@@ -157,7 +157,7 @@ private:
cxxopts::Options m_Options{"copy-state", "Copy zen server disk state"};
std::filesystem::path m_DataPath;
std::filesystem::path m_TargetPath;
- bool m_SkipLogs;
+ bool m_SkipLogs = false;
};
} // namespace zen
diff --git a/src/zen/cmds/cache_cmd.h b/src/zen/cmds/cache_cmd.h
index 8ba7903fb..654af8512 100644
--- a/src/zen/cmds/cache_cmd.h
+++ b/src/zen/cmds/cache_cmd.h
@@ -61,9 +61,9 @@ public:
private:
cxxopts::Options m_Options{"cache-details", "Detailed info on cache"};
std::string m_HostName;
- bool m_CSV;
- bool m_Details;
- bool m_AttachmentDetails;
+ bool m_CSV = false;
+ bool m_Details = false;
+ bool m_AttachmentDetails = false;
std::string m_Namespace;
std::string m_Bucket;
std::string m_ValueKey;
diff --git a/src/zen/cmds/projectstore_cmd.h b/src/zen/cmds/projectstore_cmd.h
index 5aa050d23..e1a020838 100644
--- a/src/zen/cmds/projectstore_cmd.h
+++ b/src/zen/cmds/projectstore_cmd.h
@@ -119,7 +119,7 @@ private:
std::string m_ZenUrl;
std::string m_ZenProjectName;
std::string m_ZenOplogName;
- bool m_ZenClean;
+ bool m_ZenClean = false;
std::string m_FileDirectoryPath;
std::string m_FileName;
@@ -208,10 +208,10 @@ public:
private:
cxxopts::Options m_Options{"project-details", "Detail info on project store"};
std::string m_HostName;
- bool m_Details;
- bool m_OpDetails;
- bool m_AttachmentDetails;
- bool m_CSV;
+ bool m_Details = false;
+ bool m_OpDetails = false;
+ bool m_AttachmentDetails = false;
+ bool m_CSV = false;
std::string m_ProjectName;
std::string m_OplogName;
std::string m_OpId;
diff --git a/src/zen/cmds/status_cmd.h b/src/zen/cmds/status_cmd.h
index 2dc742944..46bda9ee6 100644
--- a/src/zen/cmds/status_cmd.h
+++ b/src/zen/cmds/status_cmd.h
@@ -21,7 +21,7 @@ private:
int GetLockFileEffectivePort() const;
cxxopts::Options m_Options{"status", "Show zen status"};
- uint16_t m_Port;
+ uint16_t m_Port = 0;
std::filesystem::path m_DataDir;
};
diff --git a/src/zen/cmds/trace_cmd.h b/src/zen/cmds/trace_cmd.h
index 7b2d15fb1..404fb57a4 100644
--- a/src/zen/cmds/trace_cmd.h
+++ b/src/zen/cmds/trace_cmd.h
@@ -20,7 +20,7 @@ public:
private:
cxxopts::Options m_Options{"trace", "Control zen realtime tracing"};
std::string m_HostName;
- bool m_Stop;
+ bool m_Stop = false;
std::string m_TraceHost;
std::string m_TraceFile;
};
diff --git a/src/zen/cmds/up_cmd.h b/src/zen/cmds/up_cmd.h
index 94f896b4e..c9af16749 100644
--- a/src/zen/cmds/up_cmd.h
+++ b/src/zen/cmds/up_cmd.h
@@ -36,8 +36,8 @@ public:
private:
cxxopts::Options m_Options{"attach", "Add a sponsor process to a running zen service"};
- uint16_t m_Port;
- int m_OwnerPid;
+ uint16_t m_Port = 0;
+ int m_OwnerPid = 0;
std::filesystem::path m_DataDir;
};
@@ -52,7 +52,7 @@ public:
private:
cxxopts::Options m_Options{"down", "Bring down zen service"};
- uint16_t m_Port;
+ uint16_t m_Port = 0;
bool m_ForceTerminate = false;
std::filesystem::path m_ProgramBaseDir;
std::filesystem::path m_DataDir;
diff --git a/src/zen/cmds/version_cmd.h b/src/zen/cmds/version_cmd.h
index 0e37e91a0..f8d16fb96 100644
--- a/src/zen/cmds/version_cmd.h
+++ b/src/zen/cmds/version_cmd.h
@@ -18,7 +18,7 @@ public:
private:
cxxopts::Options m_Options{"version", "Get zen service version"};
std::string m_HostName;
- bool m_DetailedVersion;
+ bool m_DetailedVersion = false;
};
} // namespace zen