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);