[pve-devel] [PATCH ha-manager] LRM: do not release lock on shutdown errors
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Jan 18 13:50:28 CET 2016
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/HA/LRM.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
index 30df766..ce076be 100644
--- a/src/PVE/HA/LRM.pm
+++ b/src/PVE/HA/LRM.pm
@@ -295,12 +295,12 @@ sub do_one_iteration {
$haenv->watchdog_close($self->{ha_agent_wd});
delete $self->{ha_agent_wd};
}
+
+ # shutdown with all services stopped thus release the lock
+ $haenv->release_ha_agent_lock();
}
$shutdown = 1;
-
- # shutdown with all services stopped thus release the lock
- $haenv->release_ha_agent_lock();
}
}
} else {
--
2.1.4
More information about the pve-devel
mailing list