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,6 +3017,7 @@ 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()) {
|
||||||
|
if (sm.getPCState() != PCState.TCLEAN)
|
||||||
sm.nontransactional();
|
sm.nontransactional();
|
||||||
itr.remove();
|
itr.remove();
|
||||||
} else if (!sm.getMetaData().isDetachable()) {
|
} else if (!sm.getMetaData().isDetachable()) {
|
||||||
|
|
Loading…
Reference in New Issue