]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/QueryControlImpl.java
Fixed platform ontology sync startup failure problems after installs
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / QueryControlImpl.java
index d871720a8b714e51781cf7100c4f2d4b84f7b235..53a3dc1ad0b955c57547e70b450fbf55c6cd8907 100644 (file)
@@ -15,9 +15,13 @@ import org.simantics.db.procedure.AsyncMultiProcedure;
 import org.simantics.db.request.ExternalRead;
 import org.simantics.db.service.QueryControl;
 import org.simantics.utils.DataContainer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class QueryControlImpl implements QueryControl {
-       
+
+       private static final Logger LOGGER = LoggerFactory.getLogger(QueryControlImpl.class);
+
        final private SessionImplSocket session;
        
        QueryControlImpl(SessionImplSocket session) {
@@ -47,7 +51,7 @@ public class QueryControlImpl implements QueryControl {
                 
             });
         } catch (DatabaseException e) {
-            e.printStackTrace();
+            LOGGER.error("query flush failed", e);
         }
         return result.get();
     }
@@ -78,7 +82,7 @@ public class QueryControlImpl implements QueryControl {
                 }
             });
         } catch (DatabaseException e) {
-            e.printStackTrace();
+            LOGGER.error("query gc failed", e);
         }
     }
 
@@ -139,7 +143,7 @@ public class QueryControlImpl implements QueryControl {
        @Override
        public ReadGraph getIndependentGraph(ReadGraph graph) {
                ReadGraphImpl impl = (ReadGraphImpl)graph;
-               return impl.withParent(null);
+               return impl.withParent(null, null, false);
        }
 
        @Override
@@ -149,7 +153,7 @@ public class QueryControlImpl implements QueryControl {
        }
        
        @Override
-       public boolean resume(AsyncReadGraph graph) {
+       public boolean resume(ReadGraph graph) {
                ReadGraphImpl impl = (ReadGraphImpl)graph;
                return impl.processor.querySupport.resume(impl);
        }