Commit e45a1ebf authored by Juan Quintela's avatar Juan Quintela
Browse files

migration: Remove duplicated assignment of SETUP status



We assign the MIGRATION_STATUS_SETUP status in two places.  Just in
succession.  Just remove the second one.

Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
parent 5b61d575
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -838,9 +838,6 @@ static void *migration_thread(void *opaque)

void migrate_fd_connect(MigrationState *s)
{
    s->state = MIGRATION_STATUS_SETUP;
    trace_migrate_set_state(MIGRATION_STATUS_SETUP);

    /* This is a best 1st approximation. ns to ms */
    s->expected_downtime = max_downtime/1000000;
    s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);