And waits for them. That's pointless.
for (const String& part_name : active_parts_names)
            attachPartition(std::make_shared<ASTLiteral>(part_name), metadata_snapshot, true, getContext());
    LOG_INFO(log, "Attached all partitions, starting table");
    startup();
    are_restoring_replica.store(false);
}
void StorageReplicatedMergeTree::dropPartNoWaitNoThrow(const String & part_name)
{
    assertNotReadonly();
    if (!is_leader)
        throw Exception("DROP PART cannot be done on this replica because it is not a leader", ErrorCodes::NOT_A_LEADER);
    zkutil::ZooKeeperPtr zookeeper = getZooKeeper();
    LogEntry entry;
    dropPartImpl(zookeeper, part_name, entry,  false,  false);
}
void StorageReplicatedMergeTree::dropPart(const String & part_name, bool detach, ContextPtr query_context)
{
    assertNotReadonly();
    if (!is_leader)
        throw Exception("DROP PART cannot be done on this replica because it is not a leader", ErrorCodes::NOT_A_LEADER);
    zkutil::ZooKeeperPtr zookeeper = getZooKeeper();
    LogEntry entry;
    dropPartImpl(zookeeper, part_name, entry, detach,  true);
    
    if (query_context->getSettingsRef().replication_alter_partitions_sync == 1)
        waitForReplicaToProcessLogEntry(replica_name, entry);
    else if (query_context->getSettingsRef().replication_alter_partitions_sync == 2)
        waitForAllReplicasToProcessLogEntry(entry);
}
void StorageReplicatedMergeTree::dropPartition(const ASTPtr & partition, bool detach, ContextPtr query_context)