aboutsummaryrefslogtreecommitdiff
path: root/zen/zen.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-17 22:14:28 +0200
committerStefan Boberg <[email protected]>2021-08-17 22:14:28 +0200
commit5bbca1c180bd40544ba0fee3d699202e81aa9da1 (patch)
treee5bc14180fe1e2e1c637032b371bc8cc30fc5afc /zen/zen.cpp
parentImplemented support for dropping z$ buckets while online (diff)
downloadarchived-zen-5bbca1c180bd40544ba0fee3d699202e81aa9da1.tar.xz
archived-zen-5bbca1c180bd40544ba0fee3d699202e81aa9da1.zip
added 'zen drop' command to drop cache buckets online
also cleaned up the server side implementation a bit
Diffstat (limited to 'zen/zen.cpp')
-rw-r--r--zen/zen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zen/zen.cpp b/zen/zen.cpp
index 9e3095367..67ff50105 100644
--- a/zen/zen.cpp
+++ b/zen/zen.cpp
@@ -8,6 +8,7 @@
#include "zen.h"
#include "chunk/chunk.h"
+#include "cmds/cache.h"
#include "cmds/copy.h"
#include "cmds/dedup.h"
#include "cmds/deploy.h"
@@ -122,6 +123,7 @@ main(int argc, char** argv)
CopyCommand CopyCmd;
DedupCommand DedupCmd;
DeployCommand DeployCmd;
+ DropCommand DropCmd;
ChunkCommand ChunkCmd;
RunTestsCommand RunTestsCmd;
RunCommand RunCmd;
@@ -141,6 +143,7 @@ main(int argc, char** argv)
{"copy", &CopyCmd, "Copy file(s)"},
{"deploy", &DeployCmd, "Deploy data"},
{"dedup", &DedupCmd, "Dedup files"},
+ {"drop", &DropCmd, "Drop cache bucket(s)"},
{"hash", &HashCmd, "Compute file hashes"},
{"runtests", &RunTestsCmd, "Run zen tests"},
{"run", &RunCmd, "Remote execution"},