From fc3a0bfdfac9c25d2756b8a6849c8fd49d6866bb Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Sun, 27 Nov 2022 01:12:09 +0100 Subject: [PATCH] fix --- src/Storages/MergeTree/MergeTreeData.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index 4b0e0d68fb4..cdce3aac294 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -4716,6 +4716,7 @@ std::set MergeTreeData::getPartitionIdsAffectedByCommands( std::unordered_set MergeTreeData::getAllPartitionIds() const { + auto lock = lockParts(); std::unordered_set res; String prev_id; for (const auto & part : getDataPartsStateRange(DataPartState::Active))