* query exists then we need to compare the digest with
* the digest of the data that is received.
*/
for (Message message : responses)
{
ReadResponse result = results.get(message);
if (result == null)
continue; // arrived after quorum already achieved
if (result.isDigestQuery())
{
digest = result.digest();
isDigestQuery = true;
}
else
{
versions.add(result.row().cf);
endPoints.add(message.getFrom());
key = result.row().key;
}
}
// If there was a digest query compare it with all the data digests
// If there is a mismatch then throw an exception so that read repair can happen.