[NEW PATCH] BZ#726952 - Set original volume as leaf in volume clone recovery (via gerrit-bot)

Saggi Mizrahi smizrahi at redhat.com
Sun Aug 7 11:41:25 UTC 2011


New patch submitted by Saggi Mizrahi (smizrahi at redhat.com)

You can review this change at: http://gerrit.usersys.redhat.com/794

commit 251ac3035498e6c842abd3380c551655f4c0a8eb
Author: Saggi Mizrahi <smizrahi at redhat.com>
Date:   Sun Aug 7 14:18:19 2011 +0300

    BZ#726952 - Set original volume as leaf in volume clone recovery
    
    Change-Id: I6a46ca2b8fa3d7ac8cbaf50d03ea9f22309eda18

diff --git a/vdsm/storage/volume.py b/vdsm/storage/volume.py
index 1499e8e..eab13e2 100644
--- a/vdsm/storage/volume.py
+++ b/vdsm/storage/volume.py
@@ -296,7 +296,8 @@ class Volume:
         try:
             if pvolUUID != BLANK_UUID and pimgUUID != BLANK_UUID:
                 pvol = SDF.produce(sdUUID).produceVolume(pimgUUID, pvolUUID)
-                pvol.recheckIfLeaf()
+                if not pvol.recheckIfLeaf():
+                    pvol.setLeaf()
                 pvol.teardown(sdUUID, pvolUUID)
         except Exception:
             cls.log.error("Unexpected error", exc_info=True)




More information about the vdsm-patches mailing list