diff --git a/src/Common/FileCache.cpp b/src/Common/FileCache.cpp index b6f08267b75..d3d9527cdb7 100644 --- a/src/Common/FileCache.cpp +++ b/src/Common/FileCache.cpp @@ -549,7 +549,7 @@ LRUFileCache::ReserveResult LRUFileCache::tryReserveForQuery(const Key & key, si } /// When skip_download_if_exceeds_query_cache is true, there is no need /// to evict old data, skip the cache and read directly from remote fs. - else if (query_context->isSkipDownload()) + else if (query_context->isSkipDownloadIfExceed()) { return ReserveResult::NO_ENOUGH_SPACE; } diff --git a/src/Common/FileCache.h b/src/Common/FileCache.h index 6283e2dd544..150381e568c 100644 --- a/src/Common/FileCache.h +++ b/src/Common/FileCache.h @@ -321,7 +321,7 @@ private: LRUQueue & queue() { return lru_queue; } - bool isSkipDownload() { return skip_download_if_exceeds_query_cache; } + bool isSkipDownloadIfExceed() { return skip_download_if_exceeds_query_cache; } }; using QueryContextPtr = std::shared_ptr;