]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: fix pg_sum_old not copied correctly
authorYao Zongyou <yaozongyou@vip.qq.com>
Thu, 24 Jan 2019 07:41:30 +0000 (15:41 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Thu, 24 Jan 2019 07:41:30 +0000 (15:41 +0800)
commit3c779f7d2aefc9a68bceb3ec258e0425c53233d2
treeb1515ccf588a375a8a2c20edc40bdb04ee20e40c
parentd4c4082ccaa742600e93243d6e025b4ed0148cc2
mon: fix pg_sum_old not copied correctly

`pg_sum` is accumulated during `PGMap::apply_incremental`,
so if we want to make an old copy of it, we should do it at
the beginning. Or else, the `pg_sum_deltas` is always zero.

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/mon/PGMap.cc