dbms: fixed error with 'max_concurrent_queries_for_user' setting in distributed queries [#METR-17965].

This commit is contained in:
Alexey Milovidov 2015-09-25 15:47:33 +03:00
parent efc1f35c21
commit d86761f504

View File

@ -151,6 +151,8 @@ BlockInputStreams StorageDistributed::read(
{
Settings new_settings = settings;
new_settings.queue_max_wait_ms = Cluster::saturate(new_settings.queue_max_wait_ms, settings.limits.max_execution_time);
/// Не имеет смысла на удалённых серверах, так как запрос отправляется обычно с другим user-ом.
new_settings.max_concurrent_queries_for_user = 0;
size_t result_size = (cluster.pools.size() * settings.max_parallel_replicas) + cluster.getLocalNodesNum();