From: Tuukka Lehtonen Date: Tue, 5 Jun 2018 13:52:23 +0000 (+0300) Subject: Fix for empty cancelled write transactions leaving scheduled updates X-Git-Tag: v1.43.0~136^2~471 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=4b3689543c26ac085970dd200218a9a6c122467b;p=simantics%2Fplatform.git Fix for empty cancelled write transactions leaving scheduled updates gitlab #15 Change-Id: I844dab6a59df56f2097a507bcd6b6d3ec75124b1 --- 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();