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: Yury Kotov <yury-kotov@yandex-team.ru> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
2667c98722
commit
603d5a42d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user