From 06fcc6153de744289eab30a30102738685cb293b Mon Sep 17 00:00:00 2001 From: biohazard4321 <38098988+biohazard4321@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:34:21 +0800 Subject: [PATCH] [fix](cooldown)No need to rdlock inside get_cooldown, there's enough rdlock inside tablet internal function calls. --- be/src/olap/tablet_manager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/be/src/olap/tablet_manager.cpp b/be/src/olap/tablet_manager.cpp index 6696dcf2e68df2..3bac96370333d3 100644 --- a/be/src/olap/tablet_manager.cpp +++ b/be/src/olap/tablet_manager.cpp @@ -1620,7 +1620,6 @@ void TabletManager::get_cooldown_tablets(std::vector* tablets, if (UNLIKELY(nullptr == tablet)) { return; } - std::shared_lock rdlock(tablet->get_header_lock()); int64_t cooldown_timestamp = -1; size_t file_size = -1; if (!skip_tablet(tablet) &&