Skip to content

Commit

Permalink
Merge branch '3.8' of https://github.com/JumpMind/symmetric-ds.git in…
Browse files Browse the repository at this point in the history
…to 3.8
  • Loading branch information
erilong committed Feb 22, 2018
2 parents 65ed381 + 4c63eb2 commit 890c655
Showing 1 changed file with 9 additions and 6 deletions.
Expand Up @@ -911,13 +911,16 @@ protected OutgoingBatch extractOutgoingBatch(ProcessInfo processInfo, Node targe
resource.delete();
}
throw ex;
} finally {
IStagedResource resource = getStagedResource(currentBatch);
if (resource != null) {
resource.setState(State.DONE);
} finally {
try {
IStagedResource resource = getStagedResource(currentBatch);
if (resource != null) {
resource.setState(State.DONE);
}
} finally {
releaseLock(lock, currentBatch, useStagingDataWriter);
log.debug("{} released lock for batch {}", targetNode.getNodeId(), currentBatch.getBatchId());
}
releaseLock(lock, currentBatch, useStagingDataWriter);
log.debug("{} released lock for batch {}", targetNode.getNodeId(), currentBatch.getBatchId());
}
}

Expand Down

0 comments on commit 890c655

Please sign in to comment.