openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r442774 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
Date Wed, 13 Sep 2006 00:44:15 GMT
Author: mprudhom
Date: Tue Sep 12 17:44:14 2006
New Revision: 442774

URL: http://svn.apache.org/viewvc?view=rev&rev=442774
Log:
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.

Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?view=diff&rev=442774&r1=442773&r2=442774
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
Tue Sep 12 17:44:14 2006
@@ -3017,7 +3017,8 @@
         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);



Mime
View raw message