]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix for empty cancelled write transactions leaving scheduled updates 22/1822/1
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:48:35 +0000 (11:48 +0000)
gitlab #15

Change-Id: I844dab6a59df56f2097a507bcd6b6d3ec75124b1
(cherry picked from commit 4b3689543c26ac085970dd200218a9a6c122467b)

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

index 70e2cb10dd603122da7737bab85a2ea88bdc631a..52a508b6f417f2c8e3cccee30dc867c01c0dd5b8 100644 (file)
@@ -296,6 +296,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();