From 0f6b946adda907e584761f22a157403e4e154eeb Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 5 Jan 2023 13:54:10 +0300 Subject: [PATCH] Time changes with every stat change, do not schedule checks based on it --- mon/mon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mon/mon.js b/mon/mon.js index 99472f6b..e190fc9c 100644 --- a/mon/mon.js +++ b/mon/mon.js @@ -1721,11 +1721,11 @@ class Mon else if (key_parts[0] === 'osd' && key_parts[1] === 'stats') { // Recheck OSD tree on OSD addition/deletion - if ((!old) != (!kv.value) || old && kv.value && (old.size != kv.value.size || old.time != kv.value.time)) + if ((!old) != (!kv.value) || old && kv.value && old.size != kv.value.size) { this.schedule_recheck(); } - // Recheck PGs later + // Recheck PGs after last OSD statistics report this.schedule_next_recheck_at( !this.state.osd.stats[key[2]] ? 0 : this.state.osd.stats[key[2]].time+this.config.osd_out_time );