aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/projectstore_cmd.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-09-23 16:23:31 +0200
committerGitHub Enterprise <[email protected]>2025-09-23 16:23:31 +0200
commit2de9f8cdca2929dabbe65e6a51adf27d1a45d830 (patch)
tree9ae4833e1ec94445273b0163c9b755ab6156ee36 /src/zen/cmds/projectstore_cmd.cpp
parent5.7.2-pre1 (diff)
downloadarchived-zen-2de9f8cdca2929dabbe65e6a51adf27d1a45d830.tar.xz
archived-zen-2de9f8cdca2929dabbe65e6a51adf27d1a45d830.zip
limit number of chunks per block (#508)
- Improvement: Chunk block generation for `zen oplog-export` and `zen builds upload` command are now limited to max 4000 chunks per block zen builds list-block testing function to check results for recently used blocks in a context
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>");