mirror of https://github.com/apache/cloudstack.git
Fixes rollback caused by uncommitted transaction
reviewed-by: Marvin (perf setup)
This commit is contained in:
parent
18c00b7566
commit
2794fc2645
|
|
@ -267,9 +267,9 @@ public class MockVmManagerImpl implements MockVmManager {
|
|||
Map<String, State> states = new HashMap<String, State>();
|
||||
List<MockVMVO> vms = _mockVmDao.findByHostGuid(hostGuid);
|
||||
if (vms.isEmpty()) {
|
||||
txn.commit();
|
||||
return states;
|
||||
}
|
||||
|
||||
for (MockVm vm : vms) {
|
||||
states.put(vm.getName(), vm.getState());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue