try {
final boolean undo = false;
if (!context.isOk(undo)) // this is a blocking operation
- throw new InternalException("Cancel failed. This should never happen. Contact application support.");
+ throw new InternalException("Cancel failed. This should never happen.");
// System.out.println("session cs: " + session.clientChanges);
// System.out.println("reverse cs: " + cs);
queryProvider.performDirtyUpdates(graph);
}
// This will send and accept the reverse change set.
transactionToken.cancelEnd(session.writeSupport, null, session.clusterStream);
+ } else {
+ queryProvider.performDirtyUpdates(graph);
+ queryProvider.performScheduledUpdates(graph);
}
}
session.writeSupport.clearMetadata();
// deny can always remove a persistent statement.
clusterStream.reallyFlush();
- Disposable.safeDispose(session.clientChanges);
session.clientChanges = new ClientChangesImpl(session);
this.close(); // Everything is lost anyway.
throw new IllegalStateException(e);
} finally {
+ Disposable.safeDispose(cs);
lock.unlock();
}
}