Add checking pending data

This commit is contained in:
Pavel Kruglov 2021-02-27 11:40:03 +03:00
parent 197058dc12
commit 4d7ba0443f

View File

@ -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;
}