[pve-devel] [PATCH ha-manager v2 4/5] watchdog-mux: sync journal after logging expiration message
Maximiliano Sandoval
m.sandoval at proxmox.com
Wed Jun 25 15:23:48 CEST 2025
Sync right after the watchdog expires. This would be extremely useful
for detecting whether a node fenced.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
src/watchdog-mux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/watchdog-mux.c b/src/watchdog-mux.c
index 0518e86..2287625 100644
--- a/src/watchdog-mux.c
+++ b/src/watchdog-mux.c
@@ -259,6 +259,7 @@ int main(void) {
if ((ctime - client_list[i].time) > CLIENT_WATCHDOG_TIMEOUT) {
update_watchdog = 0;
fprintf(stderr, "client watchdog expired - disable watchdog updates\n");
+ sync_journal_unsafe();
}
}
}
--
2.39.5
More information about the pve-devel
mailing list