]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: Fix %USED calculation bug. 19230/head
authorXiaoxi Chen <xiaoxchen@ebay.com>
Mon, 27 Nov 2017 05:51:58 +0000 (22:51 -0700)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Nov 2017 08:18:40 +0000 (16:18 +0800)
commitb02075a963c24c6e1b24d1b076275dcce5350a03
tree01ffa7bc427ef90bd8966f7831b52f5c19e36f5b
parent55f5d7d1f19696af981007c63a7503b2e5d0a5a8
mon/PGMap: Fix %USED calculation bug.

Previous code forgot to multiple raw_used_ratio to calculate
used byte.

Fixes: http://tracker.ceph.com/issues/22247
Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
(cherry picked from commit d10c6c26f9ef7372e2c95da79d23b07ce5f4e0e5)
src/mon/PGMap.cc
src/test/mon/PGMap.cc