Change in vdsm[master]: Don't re-produce the same SD again.

ewarszaw at redhat.com ewarszaw at redhat.com
Fri Aug 16 07:51:13 UTC 2013


Eduardo has uploaded a new change for review.

Change subject: Don't re-produce the same SD again.
......................................................................

Don't re-produce the same SD again.

Anyway a similar SD is expected.

Change-Id: I7f5c267c8afa961bd5cde5e2b67d598a1fb5e486
Signed-off-by: Eduardo <ewarszaw at redhat.com>
---
M vdsm/storage/sp.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/01/18201/1

diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index 3f3c1bf..6694fe0 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -2007,8 +2007,9 @@
 
         with rmanager.acquireResource(imageResourcesNamespace, imgUUID,
                                       rm.LockType.exclusive):
+            dom = sdCache.produce(sdUUID)
             for volUUID in volumes:
-                sdCache.produce(sdUUID).produceVolume(imgUUID, volUUID).delete(
+                dom.produceVolume(imgUUID, volUUID).delete(
                     postZero=postZero, force=force)
 
     def setMaxHostID(self, spUUID, maxID):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f5c267c8afa961bd5cde5e2b67d598a1fb5e486
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Eduardo <ewarszaw at redhat.com>


More information about the vdsm-patches mailing list