Skip to content

Commit

Permalink
Replace previous received object with matching checksum if its Locati…
Browse files Browse the repository at this point in the history
…on.Status != OK fix #1767
  • Loading branch information
gunterze committed Jan 8, 2019
1 parent fef9d34 commit 03607b8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ private boolean containsWithEqualDigest(Collection<Location> locations, byte[] d
return false;

for (Location location : locations) {
if (location.getStatus() != Location.Status.OK)
continue;

byte[] digest2 = location.getDigest();
if (digest2 != null && Arrays.equals(digest, digest2))
return true;
Expand Down

0 comments on commit 03607b8

Please sign in to comment.