X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Fquery%2FQueryCacheBase.java;h=2d3c92d8242ed3259ea0518520262666cbabd423;hb=de8b6e194da6d56c410101d9c72763078b0e8717;hp=a75d6901079fa6d4bab47e41fe24c8524825c5fe;hpb=1f8b50d81a1aa1bbd67a77f7cbc1060f2eb805d4;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/QueryCacheBase.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/QueryCacheBase.java index a75d69010..2d3c92d82 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/QueryCacheBase.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/QueryCacheBase.java @@ -635,14 +635,12 @@ public class QueryCacheBase { } } - public static void waitPending(ReadGraphImpl graph, CacheEntry entry) throws DatabaseException { - - QueryProcessor processor = graph.processor; + public static void waitPending(QueryProcessor processor, CacheEntry entry) throws DatabaseException { int counter = 0; while(entry.isPending()) { try { - SessionTask task = processor.getOwnTask(processor.thread.get()); + SessionTask task = null;//processor.getOwnTask(processor.thread.get()); if(task != null) { task.run(processor.thread.get()); } else {