if (remoteResults != null)
{
for (Map.Entry<ReadCommand, IAsyncResult> entry : remoteResults.entrySet())
{
ReadCommand command = entry.getKey();
IAsyncResult iar = entry.getValue();
byte[] body;
body = iar.get(DatabaseDescriptor.getRpcTimeout(), TimeUnit.MILLISECONDS);
ByteArrayInputStream bufIn = new ByteArrayInputStream(body);
ReadResponse response = ReadResponse.serializer().deserialize(new DataInputStream(bufIn));
assert response.row() != null;
rows.add(response.row());
if (randomlyReadRepair(command))
StorageService.instance.doConsistencyCheck(response.row(), command, iar.getFrom());
}
}
return rows;
}