From 4b3689543c26ac085970dd200218a9a6c122467b Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 5 Jun 2018 16:52:23 +0300 Subject: [PATCH] Fix for empty cancelled write transactions leaving scheduled updates gitlab #15 Change-Id: I844dab6a59df56f2097a507bcd6b6d3ec75124b1 --- .../src/fi/vtt/simantics/procore/internal/State.java | 3 +++ 1 file changed, 3 insertions(+) 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 91faa7198..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(); -- 2.47.1