diff options
| author | Dan Engelbrecht <[email protected]> | 2024-10-03 16:42:57 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-10-03 16:42:57 +0200 |
| commit | b13b5f48bb497aaf9f9f3d74aceb6e474cf12898 (patch) | |
| tree | 24b1ed63ece11fb773a0ecf41ce6308969468198 /src/zenserver/config.cpp | |
| parent | 5.5.9-pre0 (diff) | |
| download | zen-b13b5f48bb497aaf9f9f3d74aceb6e474cf12898.tar.xz zen-b13b5f48bb497aaf9f9f3d74aceb6e474cf12898.zip | |
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
Diffstat (limited to 'src/zenserver/config.cpp')
| -rw-r--r-- | src/zenserver/config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |