From f88c4bc3d13fc988c753fa2e9bf044253912f48f Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mar 17 2025 17:39:32 +0000 Subject: sanlock: fix renewal history error and timeout The error/timeout values were not being reset to zero, so when the renewal history wrapped around, the old values would be reported. --- diff --git a/src/lockspace.c b/src/lockspace.c index 100bd44..bf83ac5 100644 --- a/src/lockspace.c +++ b/src/lockspace.c @@ -737,6 +737,8 @@ static void save_renewal_history(struct space *sp, int delta_result, hi->timestamp = last_success; hi->read_ms = rd_ms; hi->write_ms = wr_ms; + hi->next_timeouts = 0; + hi->next_errors = 0; sp->renewal_history_prev = sp->renewal_history_next; sp->renewal_history_next++;