More consistency: Run same mark cache size check in ch-local

Server.cpp had a check that the configured mark cache size is not 0. Run
the same check in LocalServer.cpp.
This commit is contained in:
Robert Schulze 2023-06-29 18:47:03 +00:00
parent f126e54b0d
commit bb53d635df
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -673,6 +673,8 @@ void LocalServer::processConfig()
String mark_cache_policy = config().getString("mark_cache_policy", DEFAULT_MARK_CACHE_POLICY);
size_t mark_cache_size = config().getUInt64("mark_cache_size", DEFAULT_MARK_CACHE_MAX_SIZE);
if (!mark_cache_size)
LOG_ERROR(log, "Too low mark cache size will lead to severe performance degradation.");
if (mark_cache_size > max_cache_size)
{
mark_cache_size = max_cache_size;