mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Merge 58a4c128d4
into 44b4bd38b9
This commit is contained in:
commit
058676dabe
@ -1030,7 +1030,7 @@ std::optional<QueryPipeline> StorageDistributed::distributedWriteBetweenDistribu
|
|||||||
for (size_t shard_index : collections::range(0, shards_info.size()))
|
for (size_t shard_index : collections::range(0, shards_info.size()))
|
||||||
{
|
{
|
||||||
const auto & shard_info = shards_info[shard_index];
|
const auto & shard_info = shards_info[shard_index];
|
||||||
if (shard_info.isLocal())
|
if (shard_info.isLocal() && settings.prefer_localhost_replica)
|
||||||
{
|
{
|
||||||
InterpreterInsertQuery interpreter(
|
InterpreterInsertQuery interpreter(
|
||||||
new_query,
|
new_query,
|
||||||
|
Loading…
Reference in New Issue
Block a user