From 00c6a67c94bddf56054f507e216e6bef5528c2ab Mon Sep 17 00:00:00 2001 From: zhengyu Date: Fri, 7 Feb 2025 21:00:49 +0800 Subject: [PATCH] [fix](cloud) fix file cache get_or_set timer overflow Signed-off-by: zhengyu --- be/src/io/cache/block_file_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/io/cache/block_file_cache.cpp b/be/src/io/cache/block_file_cache.cpp index 693cd49bb80aed..3068d7ed439904 100644 --- a/be/src/io/cache/block_file_cache.cpp +++ b/be/src/io/cache/block_file_cache.cpp @@ -706,7 +706,7 @@ FileBlocksHolder BlockFileCache::get_or_set(const UInt128Wrapper& hash, size_t o std::lock_guard cache_lock(_mutex); stats->lock_wait_timer += sw.elapsed_time(); FileBlocks file_blocks; - int64_t duration; + int64_t duration = 0; { SCOPED_RAW_TIMER(&duration); if (auto iter = _key_to_time.find(hash);