Skip to content
Snippets Groups Projects
Commit 603d5a42 authored by Yury Kotov's avatar Yury Kotov Committed by Juan Quintela
Browse files

migration: Fix the re-run check of the migrate-incoming command


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: default avatarYury Kotov <yury-kotov@yandex-team.ru>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Reviewed-by: default avatarDarren Kenny <darren.kenny@oracle.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 2667c987
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment