Skip to content

Commit 3d39716

Browse files
author
Prasanna Santhanam
committed
CLOUDSTACK-4384: Switch back to CLOUD_DB after simulator processing
Simulator should revert back to CLOUD_DB after its operations on SIMULATOR_DB or the cloudstack connections go to the simulator instead of cloud. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 3c40e8b commit 3d39716

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ public boolean configureSimulator(Long zoneId, Long podId, Long clusterId, Long
427427
throw new CloudRuntimeException("Unable to configure simulator because of " + ex.getMessage(), ex);
428428
} finally {
429429
txn.close();
430+
txn = Transaction.open(Transaction.CLOUD_DB);
431+
txn.close();
430432
}
431433
return true;
432434
}

0 commit comments

Comments
 (0)