mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
fixed async insertion into local shard of distributed [#CLICKHOUSE-3245]
This commit is contained in:
parent
61289c5c61
commit
c43a13cb81
@ -367,7 +367,8 @@ void DistributedBlockOutputStream::writeAsyncImpl(const Block & block, const siz
|
|||||||
for (const auto & address : cluster->getShardsAddresses()[shard_id])
|
for (const auto & address : cluster->getShardsAddresses()[shard_id])
|
||||||
if (!address.is_local)
|
if (!address.is_local)
|
||||||
dir_names.push_back(address.toStringFull());
|
dir_names.push_back(address.toStringFull());
|
||||||
writeToShard(block, dir_names);
|
if (!dir_names.empty())
|
||||||
|
writeToShard(block, dir_names);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user