mirror of https://github.com/apache/cloudstack.git
Regression fixes for adding openNew() to Transaction.java
This commit is contained in:
parent
149eb0fade
commit
03afe54084
|
|
@ -574,7 +574,7 @@ public class ClusterManagerImpl implements ClusterManager {
|
|||
return _heartbeatConnection;
|
||||
}
|
||||
|
||||
_heartbeatConnection = Transaction.getStandaloneUsageConnection();
|
||||
_heartbeatConnection = Transaction.getStandaloneConnection();
|
||||
return _heartbeatConnection;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ public class ManagementServerHostDaoImpl extends GenericDaoBase<ManagementServer
|
|||
pstmt.setLong(6, id);
|
||||
|
||||
pstmt.executeUpdate();
|
||||
conn.commit();
|
||||
} catch(SQLException e ) {
|
||||
throw new CloudRuntimeException("DB exception on " + pstmt.toString(), e);
|
||||
} finally {
|
||||
|
|
@ -78,6 +79,7 @@ public class ManagementServerHostDaoImpl extends GenericDaoBase<ManagementServer
|
|||
pstmt.setLong(2, id);
|
||||
|
||||
pstmt.executeUpdate();
|
||||
conn.commit();
|
||||
} catch (SQLException e) {
|
||||
throw new CloudRuntimeException("DB exception on " + pstmt.toString(), e);
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -549,8 +549,10 @@ public class Transaction {
|
|||
cleanup();
|
||||
}
|
||||
|
||||
tls.set(_prev);
|
||||
_prev = null;
|
||||
if(this._dbId == CONNECTED_DB) {
|
||||
tls.set(_prev);
|
||||
_prev = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue