]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libvirt-domain: fix no error report when p2p migrate fail
authorLuyao Huang <lhuang@redhat.com>
Tue, 27 Oct 2015 08:54:00 +0000 (16:54 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 27 Oct 2015 09:43:52 +0000 (10:43 +0100)
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@redhat.com>
src/libvirt-domain.c

index 6e1aacdd9589b31ddbf1f01e51de8ab2d6b29f32..14aeb09604f42547e302e9b6f069eb48709ef2b3 100644 (file)
@@ -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;