mirror of https://github.com/apache/openjpa.git
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:
parent
ef56ba1406
commit
ff13fe7b6a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue