Arik Hadas has uploaded a new change for review.

Change subject: core: add missing engine lock in run once
......................................................................

core: add missing engine lock in run once

RunVmOnce should take the engine lock that RunVm takes, but it didn't
take locks at all because the LockIdNameAttribute annotation was
missing. Thus, the LockIdNameAttribute annotation is added to RunVmOnce.

Change-Id: Iff7c176ad3741b501df4ce7fab08b89c11a33be2
Bug-Url: https://bugzilla.redhat.com/1071997
Signed-off-by: Arik Hadas <aha...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/29/25329/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
index 7cd3b36..87ebd2c 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
@@ -22,6 +22,7 @@
 import org.ovirt.engine.core.compat.Guid;
 import org.ovirt.engine.core.utils.OsRepositoryImpl;
 
+@LockIdNameAttribute
 @NonTransactiveCommandAttribute
 public class RunVmOnceCommand<T extends RunVmOnceParams> extends 
RunVmCommand<T> implements QuotaStorageDependent {
     public RunVmOnceCommand(T runVmParams) {


-- 
To view, visit http://gerrit.ovirt.org/25329
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff7c176ad3741b501df4ce7fab08b89c11a33be2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Arik Hadas <aha...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to