mirror of https://github.com/apache/openjpa.git
OPENJPA-653 - Commit for Jeremy Bauer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@674609 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2a588d6a2b
commit
c7a9063146
|
@ -569,7 +569,10 @@ public class QueryCacheStoreQuery
|
|||
try {
|
||||
// make sure we didn't abort
|
||||
if (_maintainCache) {
|
||||
QueryResult res = new QueryResult(_qk, _data.values());
|
||||
QueryResult res = null;
|
||||
synchronized (this) {
|
||||
res = new QueryResult(_qk, _data.values());
|
||||
}
|
||||
_cache.put(_qk, res);
|
||||
abortCaching();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue