From: Antti Villberg Date: Sat, 16 Dec 2017 20:57:10 +0000 (+0200) Subject: DB client state gets corrupted X-Git-Tag: v1.43.0~136^2~657 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=60887e497000cd31f5e5f2008d681b8612a21d26;p=simantics%2Fplatform.git DB client state gets corrupted refs #7685 Change-Id: Ic6a8b7f2f9e327c8aba774a86f834d160a9c4c66 --- 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);