This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 454f2bb84f0 (cloud-merge) Add a check to prevent to change the same type (#35030) 454f2bb84f0 is described below commit 454f2bb84f0e37c7fbcdebddc66754093124be04 Author: Lightman <31928846+lchangli...@users.noreply.github.com> AuthorDate: Sat May 18 13:17:47 2024 +0800 (cloud-merge) Add a check to prevent to change the same type (#35030) --- be/src/io/cache/block_file_cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/be/src/io/cache/block_file_cache.cpp b/be/src/io/cache/block_file_cache.cpp index b828bbac591..1b9d8b3f23c 100644 --- a/be/src/io/cache/block_file_cache.cpp +++ b/be/src/io/cache/block_file_cache.cpp @@ -275,6 +275,7 @@ FileBlocks BlockFileCache::get_impl(const UInt128Wrapper& hash, const CacheConte if (context.cache_type == FileCacheType::TTL && _key_to_time.find(hash) == _key_to_time.end()) { for (auto& [_, cell] : file_blocks) { FileCacheType origin_type = cell.file_block->cache_type(); + if (origin_type == FileCacheType::TTL) continue; Status st = cell.file_block->change_cache_type_by_mgr(FileCacheType::TTL); if (st.ok()) { auto& queue = get_queue(origin_type); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org