aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/projectstore_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zen/cmds/projectstore_cmd.cpp')
-rw-r--r--src/zen/cmds/projectstore_cmd.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp
index b738d16aa..c9f787915 100644
--- a/src/zen/cmds/projectstore_cmd.cpp
+++ b/src/zen/cmds/projectstore_cmd.cpp
@@ -823,6 +823,12 @@ ExportOplogCommand::ExportOplogCommand()
m_Options.add_option("", "", "maxblocksize", "Max size for bundled attachments", cxxopts::value(m_MaxBlockSize), "<blocksize>");
m_Options.add_option("",
"",
+ "maxchunksperblock",
+ "Max number of chunks in one block",
+ cxxopts::value(m_MaxChunksPerBlock),
+ "<maxchunksperblock>");
+ m_Options.add_option("",
+ "",
"maxchunkembedsize",
"Max size for attachment to be bundled",
cxxopts::value(m_MaxChunkEmbedSize),
@@ -1119,6 +1125,10 @@ ExportOplogCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg
{
Writer.AddInteger("maxblocksize"sv, m_MaxBlockSize);
}
+ if (m_MaxChunksPerBlock != 0)
+ {
+ Writer.AddInteger("maxchunksperblock"sv, m_MaxChunksPerBlock);
+ }
if (m_MaxChunkEmbedSize != 0)
{
Writer.AddInteger("maxchunkembedsize"sv, m_MaxChunkEmbedSize);
@@ -1308,13 +1318,6 @@ ImportOplogCommand::ImportOplogCommand()
"Absolute path to oplog lifetime marker file if we create the oplog",
cxxopts::value(m_GcPath),
"<path>");
- m_Options.add_option("", "", "maxblocksize", "Max size for bundled attachments", cxxopts::value(m_MaxBlockSize), "<blocksize>");
- m_Options.add_option("",
- "",
- "maxchunkembedsize",
- "Max size for attachment to be bundled",
- cxxopts::value(m_MaxChunkEmbedSize),
- "<chunksize>");
m_Options.add_option("", "f", "force", "Force import of all attachments", cxxopts::value(m_Force), "<force>");
m_Options.add_option("", "a", "async", "Trigger import but don't wait for completion", cxxopts::value(m_Async), "<async>");
m_Options.add_option("", "", "clean", "Delete existing target oplog", cxxopts::value(m_Clean), "<clean>");