]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: change the conditional in _update_calc_stats 13383/head
authorZhiqiang Wang <zhiqiang@xsky.com>
Mon, 13 Feb 2017 04:36:07 +0000 (12:36 +0800)
committerZhiqiang Wang <zhiqiang@xsky.com>
Mon, 13 Feb 2017 05:52:21 +0000 (13:52 +0800)
commit331f3730a150c728ce4389f09cc2d325a50ae805
treefc3ba65e1fad250a389cdee57303429152214b1e
parentd25b3550dae243f6868a526632e97405866e76d4
osd: change the conditional in _update_calc_stats

'in_up' and 'in_acting' exposes the internal logic of choose_acting.
The code to calculate missing/misplaced objects needs to be changed
as well when there is a change in choosing acting. Change to use
'is_backfill_targets' to avoid this.

Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
src/osd/PG.cc