Merge PR #29986 into master

* refs/pull/29986/head:
	mgr/pg_autoscaler: use 'stored' for pool_logical_used

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Sage Weil 2019-09-07 15:09:25 -05:00
commit cdb8df13cb

View File

@ -273,7 +273,7 @@ class PgAutoscaler(MgrModule):
raw_used_rate = osdmap.pool_raw_used_rate(pool_id)
pool_logical_used = pool_stats[pool_id]['bytes_used']
pool_logical_used = pool_stats[pool_id]['stored']
bias = p['options'].get('pg_autoscale_bias', 1.0)
target_bytes = p['options'].get('target_size_bytes', 0)