Change in ovirt-engine[master]: core: VM_POOL_NAME lock on VM pool creation

ahadas at redhat.com ahadas at redhat.com
Mon Jul 13 19:30:54 UTC 2015


Arik Hadas has submitted this change and it was merged.

Change subject: core: VM_POOL_NAME lock on VM pool creation
......................................................................


core: VM_POOL_NAME lock on VM pool creation

Added VM_POOL_NAME lock that is taken when a VM pool with a given name
is created. This prevents race condition that allowed to create two VM
pools with the same name.

Change-Id: Icfa9669a03e0b26aee2e51d91e556457d0369cf3
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1167284
Signed-off-by: Shmuel Melamud <smelamud at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/EngineMessage.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/locks/LockingGroup.java
M backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
M frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
5 files changed, 30 insertions(+), 1 deletion(-)

Approvals:
  Shmuel Leib Melamud: Verified
  Arik Hadas: Looks good to me, approved; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/43399
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icfa9669a03e0b26aee2e51d91e556457d0369cf3
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: Shmuel Melamud <smelamud at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list