}
private boolean hasVirtualSynchronyGaps() {
ArrayList<Digest> digests = new ArrayList<Digest>();
digests.addAll(flushCompletedMap.values());
Digest firstDigest = digests.get(0);
List<Digest> remainingDigests = digests.subList(1, digests.size());
for(Digest digest:remainingDigests){
Digest diff = firstDigest.difference(digest);
if(diff != Digest.EMPTY_DIGEST){
return true;
}
}
return false;