This commit is contained in:
KinderRiven 2022-06-06 03:21:56 +08:00
parent 13e74bef5e
commit 4e78bbd414
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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<QueryContext>;