Skip to content

Commit

Permalink
Fix #408: Retrieve Cache Proxy: does not update study.failed_retrieve…
Browse files Browse the repository at this point in the history
…s, if no objects received from fallbackCMoveSCP are forwarded to the final Move Destination
  • Loading branch information
gunterze committed Oct 6, 2016
1 parent ccbfb06 commit 043d5ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ public interface RetrieveContext extends Closeable {

int remaining();

int getNumberOfCStoreForwards();

int status();

String getOutcomeDescription();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,6 @@ public int remaining() {
- completed() - warning() - failed();
}

@Override
public int getNumberOfCStoreForwards() {
return cstoreForwards.size();
}

@Override
public int status() {
return (failed() == 0 && warning() == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ private void waitForPendingCMoveForward(RetrieveContext ctx, Association fwdas)

@Override
public void updateFailedSOPInstanceUIDList(RetrieveContext ctx) {
if (ctx.getNumberOfCStoreForwards() > 0)
ejb.updateFailedSOPInstanceUIDList(ctx, failedIUIDList(ctx));
ejb.updateFailedSOPInstanceUIDList(ctx, failedIUIDList(ctx));
}

private String failedIUIDList(RetrieveContext ctx) {
Expand Down

0 comments on commit 043d5ab

Please sign in to comment.