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:
Marc Prud'hommeaux 2006-09-13 00:44:14 +00:00
parent 832d913520
commit d78bcae002
1 changed files with 2 additions and 1 deletions

View File

@ -3017,7 +3017,8 @@ public class BrokerImpl
for (Iterator itr = states.iterator(); itr.hasNext();) {
sm = (StateManagerImpl) itr.next();
if (!sm.isPersistent()) {
sm.nontransactional();
if (sm.getPCState() != PCState.TCLEAN)
sm.nontransactional();
itr.remove();
} else if (!sm.getMetaData().isDetachable()) {
sm.release(true);