bug 6789: release router lock after commiting transaction

status 6789: resolved fixed
This commit is contained in:
kishan 2010-10-29 16:18:08 +05:30
parent a2346a274d
commit ad3c18a46c
1 changed files with 1 additions and 1 deletions

View File

@ -1511,11 +1511,11 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, VirtualM
);
userVm.setGuestMacAddress(vmMacAddress);
_vmDao.update(userVm.getId(), userVm);
txn.commit();
if (routerLock) {
_routerDao.release(routerId);
routerLock = false;
}
txn.commit();
return ipAddressStr;
}finally {
if (routerLock) {