Skip to content

Commit

Permalink
StorageExporter: copy objects already existing at the destination sto…
Browse files Browse the repository at this point in the history
…rage (again), if their Location.Status != OK fix #1768
  • Loading branch information
gunterze committed Jan 8, 2019
1 parent 03607b8 commit 355a680
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ public Outcome export(ExportContext exportContext) throws Exception {
retrieveContext.setDestinationStorage(storage.getStorageDescriptor());
for (InstanceLocations instanceLocations : retrieveContext.getMatches()) {
if (instanceLocations.getLocations().stream()
.filter(l -> l.getStorageID().equals(storageID))
.findAny().isPresent()) {
.anyMatch(l -> l.getStatus() == Location.Status.OK && l.getStorageID().equals(storageID))) {
retrieveContext.setNumberOfMatches(retrieveContext.getNumberOfMatches()-1);
continue;
}
Expand Down

0 comments on commit 355a680

Please sign in to comment.