fix bug #147: allow to set migrate_downtime to 0

This commit is contained in:
Dietmar Maurer 2012-04-11 10:54:04 +02:00
parent 084d6a59bd
commit 71c11a8301
2 changed files with 5 additions and 2 deletions

View File

@ -2585,8 +2585,9 @@ sub vm_start {
vm_monitor_command($vmid, $cmd);
};
if (my $migrate_downtime =
$conf->{migrate_downtime} || $defaults->{migrate_downtime}) {
my $migrate_downtime = $defaults->{migrate_downtime};
$migrate_downtime = $conf->{migrate_downtime} if defined($conf->{migrate_downtime});
if (defined($migrate_downtime)) {
my $cmd = "migrate_set_downtime ${migrate_downtime}";
eval { vm_monitor_command($vmid, $cmd); };
}

View File

@ -1,6 +1,8 @@
qemu-server (2.0-38) unstable; urgency=low
* add directsync cache mode
* fix bug #147: allow to set migrate_downtime to 0
-- Proxmox Support Team <support@proxmox.com> Wed, 11 Apr 2012 08:51:56 +0200