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:
Albert Lee 2008-07-07 19:41:32 +00:00
parent 2a588d6a2b
commit c7a9063146
1 changed files with 4 additions and 1 deletions

View File

@ -569,7 +569,10 @@ public class QueryCacheStoreQuery
try { try {
// make sure we didn't abort // make sure we didn't abort
if (_maintainCache) { if (_maintainCache) {
QueryResult res = new QueryResult(_qk, _data.values()); QueryResult res = null;
synchronized (this) {
res = new QueryResult(_qk, _data.values());
}
_cache.put(_qk, res); _cache.put(_qk, res);
abortCaching(); abortCaching();
} }