openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r568338 - /openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java
Date Wed, 22 Aug 2007 00:08:33 GMT
Author: pcl
Date: Tue Aug 21 17:08:32 2007
New Revision: 568338

URL: http://svn.apache.org/viewvc?rev=568338&view=rev
Log:
OPENJPA-325. Unit test to come later.

Modified:
    openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java

Modified: openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java?rev=568338&r1=568337&r2=568338&view=diff
==============================================================================
--- openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java
(original)
+++ openjpa/branches/1.0.0/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java
Tue Aug 21 17:08:32 2007
@@ -380,6 +380,9 @@
             return false;
         if (!_ctx.getPopulateDataCache())
             return true;
+        // Do not load changes into cache if the instance has been flushed
+        if (sm.isFlushed())
+            return true;
 
         // make sure that we're not trying to cache an old version
         cache.writeLock();



Mime
View raw message