aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/admin/admin.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-10-20 11:02:02 +0200
committerGitHub <[email protected]>2023-10-20 11:02:02 +0200
commit42cf81240256b92ef423a15add32d8b564375c7d (patch)
tree2ec5103d1e1278b3b727955a6f92e99f8451ea1d /src/zenserver/admin/admin.cpp
parentChange shared server config to use port 8558 (diff)
downloadzen-42cf81240256b92ef423a15add32d8b564375c7d.tar.xz
zen-42cf81240256b92ef423a15add32d8b564375c7d.zip
Add --skip-delete option to gc command (#484)
- Feature: Add `--skip-delete` option to gc command - Bugfix: Fix implementation when claiming GC reserve during GC
Diffstat (limited to 'src/zenserver/admin/admin.cpp')
-rw-r--r--src/zenserver/admin/admin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenserver/admin/admin.cpp b/src/zenserver/admin/admin.cpp
index 5313a7592..06a079a52 100644
--- a/src/zenserver/admin/admin.cpp
+++ b/src/zenserver/admin/admin.cpp
@@ -293,6 +293,11 @@ HttpAdminService::HttpAdminService(GcScheduler& Scheduler,
GcParams.SkipCid = Param == "true"sv;
}
+ if (auto Param = Params.GetValue("skipdelete"); Param.empty() == false)
+ {
+ GcParams.SkipDelete = Param == "true"sv;
+ }
+
const bool Started = m_GcScheduler.TriggerGc(GcParams);
CbObjectWriter Response;