From 3a4d5ba07d7f240cddecb0d21b4035a6cbbca624 Mon Sep 17 00:00:00 2001 From: kssenii Date: Mon, 23 Jan 2023 22:05:44 +0100 Subject: [PATCH] Fix cache policy getter --- programs/server/Server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/server/Server.cpp b/programs/server/Server.cpp index 419b80ccff2..d5372e282fc 100644 --- a/programs/server/Server.cpp +++ b/programs/server/Server.cpp @@ -1465,7 +1465,7 @@ try size_t max_cache_size = static_cast(memory_amount * cache_size_to_ram_max_ratio); /// Size of cache for uncompressed blocks. Zero means disabled. - String uncompressed_cache_policy = config().getString("uncompressed_cache_policy", ""); + String uncompressed_cache_policy = config().getString("uncompressed_cache_policy", "SLRU"); LOG_INFO(log, "Uncompressed cache policy name {}", uncompressed_cache_policy); size_t uncompressed_cache_size = config().getUInt64("uncompressed_cache_size", 0); if (uncompressed_cache_size > max_cache_size) @@ -1491,7 +1491,7 @@ try /// Size of cache for marks (index of MergeTree family of tables). size_t mark_cache_size = config().getUInt64("mark_cache_size", 5368709120); - String mark_cache_policy = config().getString("mark_cache_policy", ""); + String mark_cache_policy = config().getString("mark_cache_policy", "SLRU"); 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)