migration: Only change state after migration has finished
commit172c4356f38fbf91675256447a3bedd08220214f
authorJuan Quintela <quintela@redhat.com>
Wed, 8 Jul 2015 11:56:26 +0000 (8 13:56 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Jul 2015 07:07:54 +0000 (15 09:07 +0200)
treefc44bffc801684f1b3137312e4a156001fcbc7bb
parent661725da09f47eb92d356fac10a4cf3b7ad1f61d
migration: Only change state after migration has finished

On previous change, we changed state at post load time if it was not
running, special casing the "running" change.  Now, we change any states
at the end of the migration.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
migration/migration.c