mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add checking pending data
This commit is contained in:
parent
197058dc12
commit
4d7ba0443f
@ -296,7 +296,7 @@ HedgedConnections::ReplicaLocation HedgedConnections::getReadyReplicaLocation(As
|
||||
{
|
||||
ReplicaLocation location = replica_with_last_received_packet.value();
|
||||
replica_with_last_received_packet.reset();
|
||||
if (resumePacketReceiver(location))
|
||||
if (offset_states[location.offset].replicas[location.index].connection->hasReadPendingData() && resumePacketReceiver(location))
|
||||
return location;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user