Skip to content

Commit

Permalink
Remove redundant save operations from graphListener if durability set…
Browse files Browse the repository at this point in the history
…ting permits
  • Loading branch information
svanoort committed Mar 22, 2018
1 parent b749460 commit 960c5cc
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -1022,10 +1022,12 @@ private final class GraphL implements GraphListener {
if (node instanceof FlowEndNode) {
finish(((FlowEndNode) node).getResult(), execution != null ? execution.getCauseOfFailure() : null);
} else {
try {
save();
} catch (IOException x) {
LOGGER.log(Level.WARNING, null, x);
if (execution != null && execution.getDurabilityHint().isPersistWithEveryStep()) {
try {
save();
} catch (IOException x) {
LOGGER.log(Level.WARNING, null, x);
}
}
}
}
Expand Down

0 comments on commit 960c5cc

Please sign in to comment.