Fixes rollback caused by uncommitted transaction

reviewed-by: Marvin (perf setup)
This commit is contained in:
Prasanna Santhanam 2012-08-27 12:03:28 +05:30
parent 18c00b7566
commit 2794fc2645
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}