Fix for empty cancelled write transactions leaving scheduled updates 15/1815/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 5 Jun 2018 13:52:23 +0000 (16:52 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 8 Jun 2018 11:36:51 +0000 (11:36 +0000)
gitlab #15

Change-Id: I844dab6a59df56f2097a507bcd6b6d3ec75124b1

bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java

index 91faa719841a534ba5636a815ff1f137dc069368..efd82b6ca8f2822ab59871793c515d8a5a4f8e80 100644 (file)
@@ -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();