mirror of https://github.com/apache/cloudstack.git
Get rid of the concierge holding standalone connection
Reviewed-by: perf run
This commit is contained in:
parent
0b01c00185
commit
a594889053
|
|
@ -106,13 +106,15 @@ public class SimulatorManagerImpl implements SimulatorManager {
|
|||
private ConnectionConcierge _concierge;
|
||||
@Override
|
||||
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
|
||||
/*
|
||||
try {
|
||||
Connection conn = Transaction.getStandaloneSimulatorConnection();
|
||||
Connection conn = Transaction.getStandaloneConnectionWithException();
|
||||
conn.setAutoCommit(true);
|
||||
_concierge = new ConnectionConcierge("SimulatorConnection", conn, true);
|
||||
} catch (SQLException e) {
|
||||
throw new CloudRuntimeException("Unable to get a db connection to simulator", e);
|
||||
}
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -150,7 +152,7 @@ public class SimulatorManagerImpl implements SimulatorManager {
|
|||
@Override
|
||||
public Answer simulate(Command cmd, String hostGuid) {
|
||||
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);
|
||||
txn.transitToUserManagedConnection(_concierge.conn());
|
||||
// txn.transitToUserManagedConnection(_concierge.conn());
|
||||
|
||||
try {
|
||||
MockHost host = _mockHost.findByGuid(hostGuid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue