don't bother rolling back timeline updates if the task is cancelled, just don't recorddb population state updates.

This commit is contained in:
jmillman 2015-11-18 14:30:53 -05:00
parent a8613e6aa1
commit 7f9e8e406d

View File

@ -505,12 +505,11 @@ public class EventsRepository {
LOGGER.log(Level.INFO, "committing db"); // NON-NLS
Platform.runLater(() -> cancellable.set(false));
restartProgressHandle(Bundle.progressWindow_msg_commitingDb(), "", -1D, 1, false);
if (isCancelRequested()) {
eventDB.rollBackTransaction(trans);
} else {
eventDB.commitTransaction(trans);
eventDB.commitTransaction(trans);
if (isCancelRequested() == false) {
recordDBPopulationState(lastObjId, lastArtfID, injestRunning);
}
eventDB.analyze();
populateFilterData(skCase);
invalidateCaches();