summaryrefslogtreecommitdiffstats
path: root/migration
diff options
context:
space:
mode:
authorZhang Chen2018-09-03 06:38:52 +0200
committerJason Wang2018-10-19 05:15:03 +0200
commit41b6b7792179591553432b207e1b545fb8bd965b (patch)
treea8d9e166dfc8bb95d13f950577c3d3ea86e0a970 /migration
parentqmp event: Add COLO_EXIT event to notify users while exited COLO (diff)
downloadqemu-41b6b7792179591553432b207e1b545fb8bd965b.tar.gz
qemu-41b6b7792179591553432b207e1b545fb8bd965b.tar.xz
qemu-41b6b7792179591553432b207e1b545fb8bd965b.zip
qapi/migration.json: Rename COLO unknown mode to none mode.
Suggested by Markus Armbruster rename COLO unknown mode to none mode. Signed-off-by: Zhang Chen <zhangckid@gmail.com> Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/colo-failover.c2
-rw-r--r--migration/colo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/migration/colo-failover.c b/migration/colo-failover.c
index 0ae0c41221..4854a96c92 100644
--- a/migration/colo-failover.c
+++ b/migration/colo-failover.c
@@ -77,7 +77,7 @@ FailoverStatus failover_get_state(void)
void qmp_x_colo_lost_heartbeat(Error **errp)
{
- if (get_colo_mode() == COLO_MODE_UNKNOWN) {
+ if (get_colo_mode() == COLO_MODE_NONE) {
error_setg(errp, QERR_FEATURE_DISABLED, "colo");
return;
}
diff --git a/migration/colo.c b/migration/colo.c
index bd7390d6aa..2cdd366276 100644
--- a/migration/colo.c
+++ b/migration/colo.c
@@ -160,7 +160,7 @@ COLOMode get_colo_mode(void)
} else if (migration_incoming_in_colo_state()) {
return COLO_MODE_SECONDARY;
} else {
- return COLO_MODE_UNKNOWN;
+ return COLO_MODE_NONE;
}
}