Skip to content

Commit 84caa63

Browse files
author
Prasanna Santhanam
committed
Get rid of the concierge holding standalone connection
1 parent 9d2cf01 commit 84caa63

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

agent-simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ public class SimulatorManagerImpl implements SimulatorManager {
109109
private ConnectionConcierge _concierge;
110110
@Override
111111
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
112+
/*
112113
try {
113114
Connection conn = Transaction.getStandaloneConnectionWithException();
114115
conn.setAutoCommit(true);
115116
_concierge = new ConnectionConcierge("SimulatorConnection", conn, true);
116117
} catch (SQLException e) {
117118
throw new CloudRuntimeException("Unable to get a db connection", e);
118119
}
120+
*/
119121
return true;
120122
}
121123

@@ -152,8 +154,8 @@ public MockAgentManager getAgentMgr() {
152154
@DB
153155
@Override
154156
public Answer simulate(Command cmd, String hostGuid) {
155-
Transaction txn = Transaction.currentTxn();
156-
txn.transitToUserManagedConnection(_concierge.conn());
157+
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);
158+
// txn.transitToUserManagedConnection(_concierge.conn());
157159

158160
try {
159161
MockHost host = _mockHost.findByGuid(hostGuid);

0 commit comments

Comments
 (0)