[libvirt PATCH 11/14] qemu_snapshot: revert: save metadata within qemu process job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/qemu/qemu_snapshot.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
index 8ad441e41a..5c974280af 100644
--- a/src/qemu/qemu_snapshot.c
+++ b/src/qemu/qemu_snapshot.c
@@ -2276,14 +2276,11 @@ qemuSnapshotRevert(virDomainObj *vm,
         goto endjob;
     }
 
-    ret = 0;
+    ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined);
 
  endjob:
     qemuProcessEndJob(driver, vm);
 
-    if (ret == 0)
-        ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined);
-
     return ret;
 }
 
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux