Do not touch /pool/stats from stats aggregation if PG recheck is active

This commit is contained in:
Vitaliy Filippov
2025-01-16 20:41:16 +03:00
parent 33ef701464
commit 7c9711af20
+4
View File
@@ -773,6 +773,9 @@ class Mon
} }
} }
} }
if (!this.recheck_pgs_active)
{
// PG recheck also modifies /pool/stats, so don't touch it here if it's active
for (const pool_id in this.state.pool.stats) for (const pool_id in this.state.pool.stats)
{ {
if (!seen_pools[pool_id]) if (!seen_pools[pool_id])
@@ -792,6 +795,7 @@ class Mon
} }); } });
} }
} }
}
if (txn.length) if (txn.length)
{ {
await this.etcd.etcd_call('/kv/txn', { success: txn }, this.config.etcd_mon_timeout, 0); await this.etcd.etcd_call('/kv/txn', { success: txn }, this.config.etcd_mon_timeout, 0);