diff options
| author | Dan Engelbrecht <[email protected]> | 2024-01-25 14:00:42 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-25 14:00:42 +0100 |
| commit | bccde0a980b38d9e2291f75ef932a978e78774b4 (patch) | |
| tree | ca48ab1536d0f7a3cf9aa8743dda35abc163d553 /src/zen/cmds/projectstore_cmd.cpp | |
| parent | 0.2.39-pre2 (diff) | |
| download | archived-zen-bccde0a980b38d9e2291f75ef932a978e78774b4.tar.xz archived-zen-bccde0a980b38d9e2291f75ef932a978e78774b4.zip | |
add ignore-missing-attachments option to oplog export (debugging tool) (#641)
* add ignore-missing-attachments option to oplog export (debugging tool)
* add more status codes to do retry for in http client
* add missing X-Jupiter-IoHash header for jupiter PutRef
* reduce oplog block size to reduce amount of redundant chunks to download
* improved logging
Diffstat (limited to 'src/zen/cmds/projectstore_cmd.cpp')
| -rw-r--r-- | src/zen/cmds/projectstore_cmd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp index 9ef38a924..510e700d3 100644 --- a/src/zen/cmds/projectstore_cmd.cpp +++ b/src/zen/cmds/projectstore_cmd.cpp @@ -599,6 +599,12 @@ ExportOplogCommand::ExportOplogCommand() m_Options.add_option("", "f", "force", "Force export of all attachments", cxxopts::value(m_Force), "<force>"); m_Options.add_option("", "", + "ignore-missing-attachments", + "Continue importing oplog even if attachments are missing", + cxxopts::value(m_IgnoreMissingAttachments), + "<ignore>"); + m_Options.add_option("", + "", "disableblocks", "Disable block creation and save all attachments individually (applies to file and cloud target)", cxxopts::value(m_DisableBlocks), @@ -816,6 +822,10 @@ ExportOplogCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg { Writer.AddBool("force"sv, true); } + if (m_IgnoreMissingAttachments) + { + Writer.AddBool("ignoremissingattachments"sv, true); + } Writer.AddBool("async"sv, true); if (!m_FileDirectoryPath.empty()) { |