From b13b5f48bb497aaf9f9f3d74aceb6e474cf12898 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 3 Oct 2024 16:42:57 +0200 Subject: remove gc v1 (#121) * kill gc v1 * block use of gc v1 from zen command line * warn and flip to gcv2 if --gc-v2=false is specified for zenserver --- src/zenserver/config.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/zenserver/config.cpp') diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 7466255a9..cda5aca16 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -171,6 +171,11 @@ ValidateOptions(ZenServerOptions& ServerOptions) throw zen::OptionParseException( fmt::format("GC attachment pass count can not be larger than {}", ZenGcConfig::GcMaxAttachmentPassCount)); } + if (ServerOptions.GcConfig.UseGCV2 == false) + { + ZEN_WARN("--gc-v2=false is deprecated, reverting to --gc-v2=true"); + ServerOptions.GcConfig.UseGCV2 = true; + } } UpstreamCachePolicy -- cgit v1.2.3