aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2021-12-31 13:59:35 +0800
committerJuan Quintela <quintela@redhat.com>2022-01-28 15:38:23 +0100
commit01ee5e355620ab1cc356964472f89cfb89cddc6d (patch)
tree84a0a258234dd491b9d51d12d8fab051faf47bae /migration
parenteeeb48ee3389e837428370a8ed2772c2e74cce49 (diff)
migration/migration.c: Remove the MIGRATION_STATUS_ACTIVE when migration finished
The MIGRATION_STATUS_ACTIVE indicates that migration is running. Remove it to be handled by the default operation, It should be part of the unknown ending states. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 5b2e3c66d1..3849b33108 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -3625,12 +3625,6 @@ static void migration_iteration_finish(MigrationState *s)
"COLO enabled", __func__);
}
migrate_start_colo_process(s);
- /* Fallthrough */
- case MIGRATION_STATUS_ACTIVE:
- /*
- * We should really assert here, but since it's during
- * migration, let's try to reduce the usage of assertions.
- */
s->vm_was_running = true;
/* Fallthrough */
case MIGRATION_STATUS_FAILED: