aboutsummaryrefslogtreecommitdiff
path: root/src/zen/zen.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-10-18 21:53:59 +0200
committerGitHub <[email protected]>2023-10-18 21:53:59 +0200
commit6db4b4d1e023f4c17f12cb0915e0552f21d705f7 (patch)
treea380f15a653be4dc273eefaca1599467a7866b6e /src/zen/zen.cpp
parent0.2.28 (diff)
downloadarchived-zen-6db4b4d1e023f4c17f12cb0915e0552f21d705f7.tar.xz
archived-zen-6db4b4d1e023f4c17f12cb0915e0552f21d705f7.zip
add `flush` command and more gc status info (#483)
- Feature: New endpoint `/admin/flush ` to flush all storage - CAS, Cache and ProjectStore - Feature: New command `zen flush` to flush all storage - CAS, Cache and ProjectStore - Improved: Command `zen gc-status` now gives details about storage, when last GC occured, how long until next GC etc - Changed: Cache access and write log are disabled by default
Diffstat (limited to 'src/zen/zen.cpp')
-rw-r--r--src/zen/zen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index 949a5f4ac..cfed591a8 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -209,6 +209,7 @@ main(int argc, char** argv)
DropCommand DropCmd;
DropProjectCommand ProjectDropCmd;
ExportOplogCommand ExportOplogCmd;
+ FlushCommand FlushCmd;
GcCommand GcCmd;
GcStatusCommand GcStatusCmd;
HashCommand HashCmd;
@@ -286,6 +287,7 @@ main(int argc, char** argv)
{"attach", &AttachCmd, "Add a sponsor process to a running zen service"},
{"version", &VersionCmd, "Get zen server version"},
{"vfs", &VfsCmd, "Manage virtual file system"},
+ {"flush", &FlushCmd, "Flush storage"},
#if ZEN_WITH_TESTS
{"runtests", &RunTestsCmd, "Run zen tests"},
#endif