Skip to content

Commit ad3c18a

Browse files
author
kishan
committed
bug 6789: release router lock after commiting transaction
status 6789: resolved fixed
1 parent a2346a2 commit ad3c18a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,11 +1511,11 @@ protected String acquireGuestIpAddress(long dcId, long accountId, UserVmVO userV
15111511
);
15121512
userVm.setGuestMacAddress(vmMacAddress);
15131513
_vmDao.update(userVm.getId(), userVm);
1514+
txn.commit();
15141515
if (routerLock) {
15151516
_routerDao.release(routerId);
15161517
routerLock = false;
15171518
}
1518-
txn.commit();
15191519
return ipAddressStr;
15201520
}finally {
15211521
if (routerLock) {

0 commit comments

Comments
 (0)