aboutsummaryrefslogtreecommitdiff
path: root/src/zen/zen.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-27 05:20:24 -0500
committerGitHub <[email protected]>2023-11-27 11:20:24 +0100
commit6171e981b445b1850ed7c5ba7a2a5901f2227fba (patch)
treec037df9b2cb89d1777b92d656d5f66e621af4012 /src/zen/zen.cpp
parentAdd GC Cancel/Stop (#568) (diff)
downloadarchived-zen-6171e981b445b1850ed7c5ba7a2a5901f2227fba.tar.xz
archived-zen-6171e981b445b1850ed7c5ba7a2a5901f2227fba.zip
gc stop command (#569)v0.2.36-pre2
- Feature: New endpoint `/admin/gc-stop` to cancel a running garbage collect operation - Feature: Added `zen gc-stop` command to cancel a running garbage collect operation - Bugfix: GCv2 - make sure to discover all projects and oplogs before checking for expired data
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 7d3a9b9cd..c949008ff 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -271,6 +271,7 @@ main(int argc, char** argv)
FlushCommand FlushCmd;
GcCommand GcCmd;
GcStatusCommand GcStatusCmd;
+ GcStopCommand GcStopCmd;
ImportOplogCommand ImportOplogCmd;
JobCommand JobCmd;
OplogMirrorCommand OplogMirrorCmd;
@@ -313,6 +314,7 @@ main(int argc, char** argv)
{"down", &DownCmd, "Bring zen server down"},
{"drop", &DropCmd, "Drop cache namespace or bucket"},
{"gc-status", &GcStatusCmd, "Garbage collect zen storage status check"},
+ {"gc-stop", &GcStopCmd, "Request cancel of running garbage collection in zen storage"},
{"gc", &GcCmd, "Garbage collect zen storage"},
{"jobs", &JobCmd, "Show/cancel zen background jobs"},
{"logs", &LoggingCmd, "Show/control zen logging"},