And waits for them. That's pointless.
std::unique_lock lock(data_parts_exchange_ptr->rwlock);
    }
    
    
    
    
    clearOldPartsFromFilesystem(true);
}
StorageReplicatedMergeTree::~StorageReplicatedMergeTree()
{
    try
    {
        shutdown();
    }
    catch (...)
    {
        tryLogCurrentException(__PRETTY_FUNCTION__);
    }
}
ReplicatedMergeTreeQuorumAddedParts::PartitionIdToMaxBlock StorageReplicatedMergeTree::getMaxAddedBlocks() const
{
    ReplicatedMergeTreeQuorumAddedParts::PartitionIdToMaxBlock max_added_blocks;
    for (const auto & data_part : getDataParts())
    {
        max_added_blocks[data_part->info.partition_id]
            = std::max(max_added_blocks[data_part->info.partition_id], data_part->info.max_block);
    }
    auto zookeeper = getZooKeeper();
    const String quorum_status_path = fs::path(zookeeper_path) / "quorum" / "status";
    String value;