From 8a8398e59e480e9e878610bb34bb465ad496ab71 Mon Sep 17 00:00:00 2001 From: zxealous Date: Tue, 7 Mar 2023 15:16:49 +0800 Subject: [PATCH] [fix](file cache)fix block file cache can't be configured --- be/src/common/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/common/config.h b/be/src/common/config.h index 00278230ee4efd..477f848ab252ee 100644 --- a/be/src/common/config.h +++ b/be/src/common/config.h @@ -841,7 +841,8 @@ CONF_mInt64(file_cache_alive_time_sec, "604800"); // 1 week // "whole_file_cache": the whole file. CONF_mString(file_cache_type, ""); CONF_Validator(file_cache_type, [](const std::string config) -> bool { - return config == "sub_file_cache" || config == "whole_file_cache" || config == ""; + return config == "sub_file_cache" || config == "whole_file_cache" || config == "" || + config == "file_block_cache"; }); CONF_mInt64(file_cache_max_size_per_disk, "0"); // zero for no limit