]> git.proxmox.com Git - mirror_qemu.git/commit
migration: use switch at the end of migration
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:12 +0000 (20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:10 +0000 (12:48 +0100)
commit39b9e17905c5ff8302c0ff17af546cbf68e0b4f6
tree7f59719b57d2b121ece385ff5287503b8fa9f5b7
parentcf011f082d7a2a9abfc0a257cc4de1cfcfbef24d
migration: use switch at the end of migration

It converts the old if clauses into switch, explicitly mentions the
possible migration states.  The old nested "if"s are not clear on what
we do on different states.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c