X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FState.java;h=efd82b6ca8f2822ab59871793c515d8a5a4f8e80;hp=3199901e90e191962c5815b6bde1623e39cda4f8;hb=0d9b90834ce56b292c00b1a39850ed842c3e4d42;hpb=09366c7018d046746832e4e7033ca2588455dac2 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java index 3199901e9..efd82b6ca 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java @@ -297,6 +297,9 @@ class State { } // 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(); @@ -332,7 +335,6 @@ class State { // deny can always remove a persistent statement. clusterStream.reallyFlush(); - Disposable.safeDispose(session.clientChanges); session.clientChanges = new ClientChangesImpl(session); @@ -385,6 +387,7 @@ class State { this.close(); // Everything is lost anyway. throw new IllegalStateException(e); } finally { + Disposable.safeDispose(cs); lock.unlock(); } }