transactions of syncNetworkGroups now on .

This commit is contained in:
Prasanna Santhanam 2011-12-15 00:08:33 +05:30
parent 3a3b31f7a2
commit fb03f61f1d
1 changed files with 14 additions and 6 deletions

View File

@ -333,11 +333,19 @@ public class SimulatorManagerImpl implements SimulatorManager {
}
}
@Override
public HashMap<String, Pair<Long, Long>> syncNetworkGroups(String hostGuid) {
SimulatorInfo info = new SimulatorInfo();
info.setHostUuid(hostGuid);
return _mockVmMgr.syncNetworkGroups(info);
}
@Override
public HashMap<String, Pair<Long, Long>> syncNetworkGroups(String hostGuid) {
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);
try {
SimulatorInfo info = new SimulatorInfo();
info.setHostUuid(hostGuid);
return _mockVmMgr.syncNetworkGroups(info);
} finally {
txn.close();
txn = Transaction.open(Transaction.CLOUD_DB);
txn.close();
}
}
}