Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv31984
Modified Files:
BasicTransaction.java
Log Message:
added soem debug-logging
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation
Index: BasicTransaction.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicTransaction.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- BasicTransaction.java 19 Nov 2008 17:59:33 -0000 1.43
+++ BasicTransaction.java 12 Jan 2009 15:40:51 -0000 1.44
@@ -23,7 +23,7 @@
* which means that changes are committed only if you commit the transaction
itself.
* This mechanism allows you to rollback changes if something goes wrong.
* @author Pierre van Rooden
- * @version $Id: BasicTransaction.java,v 1.43 2008/11/19 17:59:33 michiel Exp $
+ * @version $Id: BasicTransaction.java,v 1.44 2009/01/12 15:40:51 michiel Exp $
*/
public class BasicTransaction extends BasicCloud implements Transaction {
@@ -122,18 +122,35 @@
// if this is a transaction within a transaction (theoretically
possible)
// leave the committing to the 'parent' transaction
if (parentCloud instanceof Transaction) {
+ log.debug("Ignoring commit, because parent is transaction");
// do nothing
} else {
try {
assert
BasicCloudContext.transactionManager.getTransaction(transactionName).size() ==
getNodes().size();
+
//log.info("Commiting " + getNodes());
+
+ if (log.isDebugEnabled()) {
+ log.debug("Resolving " + getNodes().size() + " nodes");
+ }
+
BasicCloudContext.transactionManager.resolve(transactionName);
+
+ if (log.isDebugEnabled()) {
+ log.debug("Committing " + getNodes().size() + " nodes");
+ }
+
BasicCloudContext.transactionManager.commit(userContext,
transactionName);
- // This is a hack to call the commitprocessors which are only
available in the bridge.
+ if (log.isDebugEnabled()) {
+ log.debug("Commitprocessing " + getNodes().size() + "
nodes");
+ }
+
+ // This is a hack to call the commitprocessors which are only
available in the
+ // bridge.
+
for (Node n : getNodes()) {
- log.info("Commiting " + n);
if (n == null) {
log.warn("Found null in transaction");
continue;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs