mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
59d66bb1d5
This is needed to make clickhouse-copier work with cross-replication setups (also known as [circular replication][1]). When database name is not specified we rely on `<default_database>` element from replica stanza. Example: ```xml <source_cluster> <shard> <replica> <host>localhost</host> <port>9000</port> <default_database>r0</default_database> </replica> <replica> <host>localhost</host> <port>666</port> <default_database>r1</default_database> </replica> </shard> <shard> <replica> <host>localhost</host> <port>666</port> <default_database>r0</default_database> </replica> <replica> <host>localhost</host> <port>9000</port> <default_database>r1</default_database> </replica> </shard> </source_cluster> ``` [1]: https://www.altinity.com/blog/2018/5/10/circular-replication-cluster-topology-in-clickhouse |
||
---|---|---|
.. | ||
clickhouse-copier.cpp | ||
ClusterCopier.cpp | ||
ClusterCopier.h | ||
CMakeLists.txt |