]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuMigrate.pm
migration: fix downtime limit auto-increase
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 2 Apr 2020 13:20:07 +0000 (15:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 2 Apr 2020 14:48:51 +0000 (16:48 +0200)
commitc05f1b33ea1cf6ed76a5e3036c23cbf428723aba
tree1cd93625edb7af956347cca2c09418194fcfa279
parente5fd1c65918dd3edb35a7a92a9757dc531a10a2d
migration: fix downtime limit auto-increase

485449e37 ("qmp: use migrate-set-parameters in favor of deprecated options")
changed the initial "migrate_set_downtime" QMP call to the more recent
"migrate-set-parameters", but forgot to do so for the auto-increase code
further below.

Since the units of the two calls don't match, this would have caused the
auto-increase to increase the limit to absurd levels as soon as it kicked
in (ms treated as s).

Update the second call to the new version as well, and while at it remove
the unnecessary "defined()" check for $migrate_downtime, which is always
initialized from the defaults anyway.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuMigrate.pm