aboutsummaryrefslogtreecommitdiff
path: root/zenserver/admin/admin.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-14 09:41:04 +0100
committerPer Larsson <[email protected]>2021-12-14 09:41:04 +0100
commit5f8136b25040046c466c95cbec3874594ff91d0c (patch)
treeb6cdbf23a5074c18ed7565e8c81709a9df350c0c /zenserver/admin/admin.cpp
parentRemove Cid to CAS chunk mapping after GC. (diff)
downloadzen-5f8136b25040046c466c95cbec3874594ff91d0c.tar.xz
zen-5f8136b25040046c466c95cbec3874594ff91d0c.zip
Fixed bug in z$ service returning partial cache records and enable small object GC by default.
Diffstat (limited to 'zenserver/admin/admin.cpp')
-rw-r--r--zenserver/admin/admin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/admin/admin.cpp b/zenserver/admin/admin.cpp
index 8a3ab460c..15314b12a 100644
--- a/zenserver/admin/admin.cpp
+++ b/zenserver/admin/admin.cpp
@@ -43,9 +43,9 @@ HttpAdminService::HttpAdminService(GcScheduler& Scheduler) : m_GcScheduler(Sched
const HttpServerRequest::QueryParams Params = HttpReq.GetQueryParams();
GcScheduler::TriggerParams GcParams;
- if (auto Param = Params.GetValue("smallobjects"); Param == "true"sv)
+ if (auto Param = Params.GetValue("smallobjects"); Param.empty() == false)
{
- GcParams.CollectSmallObjects = true;
+ GcParams.CollectSmallObjects = Param == "true"sv;
}
if (auto Param = Params.GetValue("maxcacheduration"); Param.empty() == false)