From 19f302bfe2446e8a0b1e4a7dd53219ac0400b75c 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 (cherry picked from commit 4b3689543c26ac085970dd200218a9a6c122467b) --- .../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 70e2cb10d..52a508b6f 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 @@ -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(); -- 2.45.1