OPENJPA-325. Unit test to come later.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-08-22 00:08:32 +00:00
parent ef56ba1406
commit ff13fe7b6a
1 changed files with 3 additions and 0 deletions

View File

@ -380,6 +380,9 @@ public class DataCacheStoreManager
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();