From 60887e497000cd31f5e5f2008d681b8612a21d26 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Sat, 16 Dec 2017 22:57:10 +0200 Subject: [PATCH] DB client state gets corrupted refs #7685 Change-Id: Ic6a8b7f2f9e327c8aba774a86f834d160a9c4c66 --- .../fi/vtt/simantics/procore/internal/State.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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 f30418a6a..70e2cb10d 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 @@ -327,17 +327,9 @@ class State { if (vg != null && clusterStream.isDirty()) new Exception("Internal error: virtual transaction committed changes into core (" + request + ")").printStackTrace(); -// long start = System.nanoTime(); - if (null == vg) { - clusterStream.reallyFlush(); - // This was fired just before in handleUpdatesAndMetadata -// if (!writeOnly) -// session.fireMetadataListeners(graph, cs); - } else - clusterStream.clear(); - -// long duration = System.nanoTime() - start; -// System.out.println("reallyFlush " + 1e-9*duration + "s. "); + // This is needed even when the write targets a virtual graph - + // deny can always remove a persistent statement. + clusterStream.reallyFlush(); session.clientChanges = new ClientChangesImpl(session); -- 2.43.2