Do not touch /pool/stats from stats aggregation if PG recheck is active
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user