mirror of https://github.com/apache/openjpa.git
Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach. Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
832d913520
commit
d78bcae002
|
@ -3017,7 +3017,8 @@ public class BrokerImpl
|
||||||
for (Iterator itr = states.iterator(); itr.hasNext();) {
|
for (Iterator itr = states.iterator(); itr.hasNext();) {
|
||||||
sm = (StateManagerImpl) itr.next();
|
sm = (StateManagerImpl) itr.next();
|
||||||
if (!sm.isPersistent()) {
|
if (!sm.isPersistent()) {
|
||||||
sm.nontransactional();
|
if (sm.getPCState() != PCState.TCLEAN)
|
||||||
|
sm.nontransactional();
|
||||||
itr.remove();
|
itr.remove();
|
||||||
} else if (!sm.getMetaData().isDetachable()) {
|
} else if (!sm.getMetaData().isDetachable()) {
|
||||||
sm.release(true);
|
sm.release(true);
|
||||||
|
|
Loading…
Reference in New Issue