Update StorageReplicatedMergeTree.cpp

This commit is contained in:
Alexander Tokmakov 2024-12-12 15:59:42 +01:00 committed by GitHub
parent eaed771641
commit 4c8607155f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8334,6 +8334,9 @@ void StorageReplicatedMergeTree::replacePartitionFrom(
}
LOG_INFO(log, "Will try to attach {} partitions", partitions.size());
if (partitions.empty())
return;
const Stopwatch watch;
ProfileEventsScope profile_events_scope;
const auto zookeeper = getZooKeeper();