mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Change error code
This commit is contained in:
parent
43dff9d34c
commit
f9fa9c094f
@ -65,7 +65,7 @@ public:
|
|||||||
, log(log_)
|
, log(log_)
|
||||||
{
|
{
|
||||||
if (nested_pools.empty())
|
if (nested_pools.empty())
|
||||||
throw DB::Exception(DB::ErrorCodes::LOGICAL_ERROR, "Cannot create PoolWithFailover cause nested pools are empty");
|
throw DB::Exception(DB::ErrorCodes::ALL_CONNECTION_TRIES_FAILED, "Cannot create PoolWithFailover cause nested pools are empty");
|
||||||
|
|
||||||
for (size_t i = 0;i < nested_pools.size(); ++i)
|
for (size_t i = 0;i < nested_pools.size(); ++i)
|
||||||
shared_pool_states[i].config_priority = nested_pools[i]->getPriority();
|
shared_pool_states[i].config_priority = nested_pools[i]->getPriority();
|
||||||
|
Loading…
Reference in New Issue
Block a user