[PATCH] libvirt-domain: fix no error report when p2p migrate fail

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

 



After commit a26669d7, we only jump to error when
virDomainMigrateUnmanagedParams return a value less than -1.
this will make the migrate result always be success even we
meet some problem.

Signed-off-by: Luyao Huang <lhuang@xxxxxxxxxx>
---
 src/libvirt-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 6e1aacd..14aeb09 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -4478,7 +4478,7 @@ virDomainMigrateToURI3(virDomainPtr domain,
         dconnuri = NULL;
 
     if (virDomainMigrateUnmanagedParams(domain, dconnuri,
-                                        params, nparams, flags) < -1)
+                                        params, nparams, flags) < 0)
         goto error;
 
     return 0;
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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]