mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +01:00
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> (cherry picked from commit 3d39716c8fed2b27edbd4475a7e0915b1200123c)
This commit is contained in:
parent
c9e42b462d
commit
35b5df61c0
@ -427,6 +427,8 @@ public class SimulatorManagerImpl extends ManagerBase implements SimulatorManage
|
|||||||
throw new CloudRuntimeException("Unable to configure simulator because of " + ex.getMessage(), ex);
|
throw new CloudRuntimeException("Unable to configure simulator because of " + ex.getMessage(), ex);
|
||||||
} finally {
|
} finally {
|
||||||
txn.close();
|
txn.close();
|
||||||
|
txn = Transaction.open(Transaction.CLOUD_DB);
|
||||||
|
txn.close();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user