And waits for them. That's pointless.
ReplicatedMergeTreeTableMetadata current_metadata(*this, metadata_snapshot);
            current_zookeeper->createOrUpdate(replica_path + "/metadata", current_metadata.toString(),
                zkutil::CreateMode::Persistent);
        }
        checkTableStructure(replica_path, metadata_snapshot);
        checkParts(skip_sanity_checks);
        if (current_zookeeper->exists(replica_path + "/metadata_version"))
        {
            metadata_version = parse<int>(current_zookeeper->get(replica_path + "/metadata_version"));
        }
        else
        {
            
            
            
            
            
            Coordination::Stat metadata_stat;
            current_zookeeper->get(zookeeper_path + "/metadata", &metadata_stat);
            metadata_version = metadata_stat.version;
        }
        
        
        clearOldTemporaryDirectories(0);
        clearOldWriteAheadLogs();
    }
    createNewZooKeeperNodes();
    syncPinnedPartUUIDs();
}
bool StorageReplicatedMergeTree::checkFixedGranularityInZookeeper()