This is an automated email from the ASF dual-hosted git repository. lihaopeng 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 4e7eee8e670 [fix](compile) Fix links failure when use gcc to compile (#32447) 4e7eee8e670 is described below commit 4e7eee8e670a6413e32541b8558722eafea493e1 Author: zclllyybb <zhaochan...@selectdb.com> AuthorDate: Tue Mar 19 14:20:42 2024 +0800 [fix](compile) Fix links failure when use gcc to compile (#32447) --- be/src/io/cache/block_file_cache.cpp | 5 ++++- be/src/io/cache/block_file_cache.h | 6 ++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/be/src/io/cache/block_file_cache.cpp b/be/src/io/cache/block_file_cache.cpp index f8d97cbe69d..2e16227c613 100644 --- a/be/src/io/cache/block_file_cache.cpp +++ b/be/src/io/cache/block_file_cache.cpp @@ -27,6 +27,7 @@ #endif #include <chrono> // IWYU pragma: keep +#include <mutex> #include "common/config.h" #include "common/logging.h" @@ -1507,5 +1508,7 @@ Status BlockFileCache::clear_file_cache_directly() { .tag("use_time", static_cast<int64_t>(use_time.count())); return Status::OK(); } - +template void BlockFileCache::remove(FileBlockSPtr file_block, + std::lock_guard<std::mutex>& cache_lock, + std::lock_guard<std::mutex>& block_lock); } // namespace doris::io diff --git a/be/src/io/cache/block_file_cache.h b/be/src/io/cache/block_file_cache.h index 17dc8387ba7..36aa94acacf 100644 --- a/be/src/io/cache/block_file_cache.h +++ b/be/src/io/cache/block_file_cache.h @@ -29,10 +29,8 @@ namespace doris::io { template <class Lock> -concept IsXLock = requires { - std::same_as<Lock, std::lock_guard<std::mutex>> || - std::same_as<Lock, std::unique_lock<std::mutex>>; -}; +concept IsXLock = std::same_as<Lock, std::lock_guard<std::mutex>> || + std::same_as<Lock, std::unique_lock<std::mutex>>; class FSFileCacheStorage; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org