Sergey Gotliv has uploaded a new change for review.

Change subject: Use shared lock for setStorageDomainDescription command
......................................................................

Use shared lock for setStorageDomainDescription command

The "setStorageDomainDescription" command can be executed during other
long running tasks therefore it should hold shared lock instead of
exclusive.

Change-Id: Idca7b7b6642c222d88a6cd2a94d4033c0c3ef70b
Bug-Url: https://bugzilla.redhat.com/819316
Signed-off-by: Sergey Gotliv <sgot...@redhat.com>
---
M vdsm/storage/hsm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/98/17198/1

diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index b49f419..432cc09 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -2684,7 +2684,7 @@
             se.StorageDomainActionError(
                 "sdUUID=%s, description=%s" % (sdUUID, description)))
         dom = sdCache.produce(sdUUID=sdUUID)
-        vars.task.getExclusiveLock(STORAGE, sdUUID)
+        vars.task.getSharedLock(STORAGE, sdUUID)
         dom.setDescription(descr=description)
 
     @public


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idca7b7b6642c222d88a6cd2a94d4033c0c3ef70b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <sgot...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to