mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge pull request #59854 from ClickHouse/system_zk_init
Do not reinitialize ZooKeeperWithFaultInjection on each chunk
This commit is contained in:
commit
67bb3994ce
@ -220,6 +220,7 @@ private:
|
||||
const UInt64 max_block_size;
|
||||
Paths paths;
|
||||
ContextPtr context;
|
||||
ZooKeeperWithFaultInjection::Ptr zookeeper;
|
||||
bool started = false;
|
||||
};
|
||||
|
||||
@ -484,7 +485,6 @@ Chunk SystemZooKeeperSource::generate()
|
||||
settings.insert_keeper_retry_initial_backoff_ms,
|
||||
settings.insert_keeper_retry_max_backoff_ms);
|
||||
|
||||
ZooKeeperWithFaultInjection::Ptr zookeeper;
|
||||
/// Handles reconnects when needed
|
||||
auto get_zookeeper = [&] ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user