mirror of https://github.com/apache/cloudstack.git
bug 6789: release router lock after commiting transaction
status 6789: resolved fixed
This commit is contained in:
parent
a2346a274d
commit
ad3c18a46c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue