Skip to content

Commit

Permalink
Migration/colo.c: Fix double close bug when occur COLO failover
Browse files Browse the repository at this point in the history
In migration_incoming_state_destroy(void) will check the mis->to_src_file
to double close the mis->to_src_file when occur COLO failover.

Signed-off-by: Zhang Chen <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
  • Loading branch information
zhangckid authored and dagrh committed Mar 6, 2019
1 parent c13c415 commit b8b5734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migration/colo.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ void *colo_process_incoming_thread(void *opaque)
/* Must be called after failover BH is completed */
if (mis->to_src_file) {
qemu_fclose(mis->to_src_file);
mis->to_src_file = NULL;
}
migration_incoming_disable_colo();

Expand Down

0 comments on commit b8b5734

Please sign in to comment.