From 525f96b7aee1298b6597ca1ff674a44b9309873f Mon Sep 17 00:00:00 2001 From: Alex Huang Date: Thu, 25 Oct 2012 13:13:47 -0700 Subject: [PATCH] fixed tab problems --- utils/src/com/cloud/utils/db/Transaction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/src/com/cloud/utils/db/Transaction.java b/utils/src/com/cloud/utils/db/Transaction.java index 3a669e11090..7be9ee36537 100755 --- a/utils/src/com/cloud/utils/db/Transaction.java +++ b/utils/src/com/cloud/utils/db/Transaction.java @@ -130,7 +130,7 @@ public class Transaction { // the existing DAO features // public void transitToUserManagedConnection(Connection conn) { - assert(_conn == null /*&& _stack.size() <= 1*/) : "Can't change to a user managed connection unless the stack is empty and the db connection is null, you may have forgotten to invoke transitToAutoManagedConnection to close out the DB connection: " + toString(); + assert(_conn == null /*&& _stack.size() <= 1*/) : "Can't change to a user managed connection unless the stack is empty and the db connection is null, you may have forgotten to invoke transitToAutoManagedConnection to close out the DB connection: " + toString(); _conn = conn; _dbId = CONNECTED_DB; } @@ -747,8 +747,8 @@ public class Transaction { } try { - // we should only close db connection when it is not user managed - if(this._dbId != CONNECTED_DB) { + // we should only close db connection when it is not user managed + if (this._dbId != CONNECTED_DB) { if (s_connLogger.isTraceEnabled()) { s_connLogger.trace("Closing DB connection: dbconn" + System.identityHashCode(_conn)); }