Skip to content

Commit 525f96b

Browse files
author
Alex Huang
committed
fixed tab problems
1 parent 7b7f4cd commit 525f96b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎utils/src/com/cloud/utils/db/Transaction.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static Transaction open(final short databaseId) {
130130
// the existing DAO features
131131
//
132132
public void transitToUserManagedConnection(Connection conn) {
133-
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();
133+
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();
134134
_conn = conn;
135135
_dbId = CONNECTED_DB;
136136
}
@@ -747,8 +747,8 @@ protected void closeConnection() {
747747
}
748748

749749
try {
750-
// we should only close db connection when it is not user managed
751-
if(this._dbId != CONNECTED_DB) {
750+
// we should only close db connection when it is not user managed
751+
if (this._dbId != CONNECTED_DB) {
752752
if (s_connLogger.isTraceEnabled()) {
753753
s_connLogger.trace("Closing DB connection: dbconn" + System.identityHashCode(_conn));
754754
}

0 commit comments

Comments
 (0)