Skip to content

Commit

Permalink
migration: fix duplicate initialization for expected_downtime and cle…
Browse files Browse the repository at this point in the history
…anup_bh

migrate_fd_connect duplicate initialize expected_downtime and cleanup_bh.

Signed-off-by: Lidong Chen <lidongchen@tencent.com>
Message-Id: <1532434585-14732-2-git-send-email-lidongchen@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  • Loading branch information
jemmy858585 authored and dagrh committed Jul 24, 2018
1 parent 829db8b commit 4b3fb65
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions migration/migration.c
Expand Up @@ -3052,8 +3052,6 @@ void migrate_fd_connect(MigrationState *s, Error *error_in)
} else {
/* This is a fresh new migration */
rate_limit = s->parameters.max_bandwidth / XFER_LIMIT_RATIO;
s->expected_downtime = s->parameters.downtime_limit;
s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);

/* Notify before starting migration thread */
notifier_list_notify(&migration_state_notifiers, s);
Expand Down

0 comments on commit 4b3fb65

Please sign in to comment.