aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/projectstore_cmd.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-01-22 13:38:44 +0100
committerGitHub <[email protected]>2024-01-22 13:38:44 +0100
commit295b3312a0bb37cf68985454a2a1bd6d7a27b2d4 (patch)
tree3917ccb145812668398e203e7f5c772836a0cd73 /src/zen/cmds/projectstore_cmd.cpp
parentimproved errors from jupiter upstream (#636) (diff)
downloadarchived-zen-295b3312a0bb37cf68985454a2a1bd6d7a27b2d4.tar.xz
archived-zen-295b3312a0bb37cf68985454a2a1bd6d7a27b2d4.zip
add --ignore-missing-attachments to oplog-import command (#637)
Diffstat (limited to 'src/zen/cmds/projectstore_cmd.cpp')
-rw-r--r--src/zen/cmds/projectstore_cmd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp
index 723b45cda..9ef38a924 100644
--- a/src/zen/cmds/projectstore_cmd.cpp
+++ b/src/zen/cmds/projectstore_cmd.cpp
@@ -956,6 +956,12 @@ ImportOplogCommand::ImportOplogCommand()
"<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("",
+ "",
+ "ignore-missing-attachments",
+ "Continue importing oplog even if attachments are missing",
+ cxxopts::value(m_IgnoreMissingAttachments),
+ "<ignore>");
m_Options.add_option("", "", "cloud", "Cloud Storage URL", cxxopts::value(m_CloudUrl), "<url>");
m_Options.add_option("cloud", "", "namespace", "Cloud Storage namespace", cxxopts::value(m_CloudNamespace), "<namespace>");
@@ -1122,6 +1128,10 @@ ImportOplogCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg
{
Writer.AddBool("force"sv, true);
}
+ if (m_IgnoreMissingAttachments)
+ {
+ Writer.AddBool("ignoremissingattachments"sv, true);
+ }
if (!m_FileDirectoryPath.empty())
{
Writer.BeginObject("file"sv);