Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

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 <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.