From 6171e981b445b1850ed7c5ba7a2a5901f2227fba Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 27 Nov 2023 05:20:24 -0500 Subject: gc stop command (#569) - 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 --- src/zenserver/zenserver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zenserver/zenserver.cpp') diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp index ba9ff4f88..841f19295 100644 --- a/src/zenserver/zenserver.cpp +++ b/src/zenserver/zenserver.cpp @@ -604,8 +604,6 @@ ZenServer::Run() SetNewState(kShuttingDown); ZEN_INFO(ZEN_APP_NAME " exiting"); - - Flush(); } void @@ -640,8 +638,10 @@ ZenServer::Cleanup() } m_StatsReporter.Shutdown(); - m_GcScheduler.Shutdown(); + + Flush(); + m_AdminService.reset(); m_VfsService.reset(); m_ObjStoreService.reset(); -- cgit v1.2.3