mirror of https://github.com/apache/openjpa.git
OPENJPA-703: Ignore prepared query if query is locking. Merged from trunk revision 935231
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@935232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9c3e403308
commit
7312e27fde
|
@ -508,8 +508,12 @@ public class QueryImpl<X> implements OpenJPAQuerySPI<X>, Serializable {
|
|||
return false;
|
||||
}
|
||||
FetchConfiguration fetch = _query.getFetchConfiguration();
|
||||
if (fetch.getReadLockLevel() != 0)
|
||||
if (fetch.getReadLockLevel() != 0) {
|
||||
if (cache.get(_id) != null) {
|
||||
ignorePreparedQuery();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Boolean registered = cache.register(_id, _query, fetch);
|
||||
boolean alreadyCached = (registered == null);
|
||||
String lang = _query.getLanguage();
|
||||
|
|
Loading…
Reference in New Issue