From e27a5da5dae33f958a4b809a9e20a0af33c24f90 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 25 Sep 2024 10:21:53 +0200 Subject: Add `gc-attachment-passes` option to zenserver (#167) Added option `gc-attachment-passes` to zenserver Cleaned up GCv2 start and stop logs and added identifier to easily find matching start and end of a GC pass in log file Fixed project store not properly sorting references found during lock phase --- src/zen/cmds/admin_cmd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/zen/cmds/admin_cmd.cpp') diff --git a/src/zen/cmds/admin_cmd.cpp b/src/zen/cmds/admin_cmd.cpp index dd0bf83de..fbac0bbf3 100644 --- a/src/zen/cmds/admin_cmd.cpp +++ b/src/zen/cmds/admin_cmd.cpp @@ -205,12 +205,10 @@ GcCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) { throw OptionParseException(fmt::format("invalid reference range, reference-high must be higher value than reference-low")); } - if (LowRef != IoHash::Zero) + + if (!m_ReferenceHashLow.empty() || !m_ReferenceHashHigh.empty()) { Params.Add({"referencehashlow", LowRef.ToHexString()}); - } - if (HighRef != IoHash::Max) - { Params.Add({"referencehashhigh", HighRef.ToHexString()}); } -- cgit v1.2.3