openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r674609 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
Date Mon, 07 Jul 2008 19:41:33 GMT
Author: allee8285
Date: Mon Jul  7 12:41:32 2008
New Revision: 674609

URL: http://svn.apache.org/viewvc?rev=674609&view=rev
Log:
OPENJPA-653 - Commit for Jeremy Bauer

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java?rev=674609&r1=674608&r2=674609&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
Mon Jul  7 12:41:32 2008
@@ -569,7 +569,10 @@
                 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();
                     }



Mime
View raw message