Do not re-schedule recheck indefinitely, run it after mon_change_timeout in any case
parent
41add50e4e
commit
465cbf0b2f
|
@ -1378,17 +1378,15 @@ class Mon
|
||||||
// This is required for multiple change events to trigger at most 1 recheck in 1s
|
// This is required for multiple change events to trigger at most 1 recheck in 1s
|
||||||
schedule_recheck()
|
schedule_recheck()
|
||||||
{
|
{
|
||||||
if (this.recheck_timer)
|
if (!this.recheck_timer)
|
||||||
{
|
{
|
||||||
clearTimeout(this.recheck_timer);
|
|
||||||
this.recheck_timer = null;
|
|
||||||
}
|
|
||||||
this.recheck_timer = setTimeout(() =>
|
this.recheck_timer = setTimeout(() =>
|
||||||
{
|
{
|
||||||
this.recheck_timer = null;
|
this.recheck_timer = null;
|
||||||
this.recheck_pgs().catch(this.die);
|
this.recheck_pgs().catch(this.die);
|
||||||
}, this.config.mon_change_timeout || 1000);
|
}, this.config.mon_change_timeout || 1000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sum_op_stats(timestamp, prev_stats)
|
sum_op_stats(timestamp, prev_stats)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue