qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] migration: Fix the re-run check of the migrate-incoming comm


From: Darren Kenny
Subject: Re: [PATCH] migration: Fix the re-run check of the migrate-incoming command
Date: Thu, 14 Nov 2019 13:50:35 +0000
User-agent: NeoMutt/20180716

On Wed, Nov 13, 2019 at 08:53:25PM +0300, Yury Kotov wrote:
The current check sets an error but doesn't fail the command.
This may cause a problem if new connection attempt by the same URI
affects the first connection.

Signed-off-by: Yury Kotov <address@hidden>

Reviewed-by: Darren Kenny <address@hidden>

---
migration/migration.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/migration/migration.c b/migration/migration.c
index 354ad072fa..fa2005b49f 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -1784,6 +1784,7 @@ void qmp_migrate_incoming(const char *uri, Error **errp)
    }
    if (!once) {
        error_setg(errp, "The incoming migration has already been started");
+        return;
    }

    qemu_start_incoming_migration(uri, &local_err);
--
2.24.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]