]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Statements request is missing dec
authorAntti Villberg <antti.villberg@semantum.fi>
Tue, 8 Sep 2020 19:21:10 +0000 (22:21 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Tue, 8 Sep 2020 19:21:10 +0000 (22:21 +0300)
gitlab #599

Change-Id: I199dbad157fc25302e56cc49a55900632b6752b0

bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/ReadGraphImpl.java
bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/Statements.java

index 2309af76440b10bc2a3e9d336cf2fc4bdfc14819..415df9af8dd23c412d80932f82cab2b5f4f4d8fc 100644 (file)
@@ -6426,4 +6426,12 @@ public class ReadGraphImpl implements AsyncReadGraph {
         return (T) processor.getL0();
     }
 
+    /*
+     * This method can be called to obtain a stable resource identifier for debugging
+     */
+    public String clusterAndIndex(int r) {
+        if(r < 0) return "";
+        return "" + processor.querySupport.getClusterId(r) + ":" + (r & 0xfff);
+    }
+    
 }
index 218777413fe496a3afbba9d8dfb142a1fd0f1194..a8c1afc0a640935c6294941db5eac2d5ff9ab8be 100644 (file)
@@ -383,6 +383,7 @@ public final class Statements extends CollectionBinaryQuery<TripleIntProcedure>
 
                                         @Override
                                         public void finished(ReadGraphImpl graph) throws DatabaseException {
+                                            dec(graph);
                                         }
 
                                         @Override