]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: skip first non-zero incremental in PGMap::apply_incremental() 18347/head
authorAleksei Gutikov <aleksey.gutikov@synesis.ru>
Mon, 16 Oct 2017 14:31:12 +0000 (17:31 +0300)
committerAleksei Gutikov <aleksey.gutikov@synesis.ru>
Wed, 1 Nov 2017 08:47:46 +0000 (11:47 +0300)
commit013a3803c931ac2e5c390dcd209e1dd0a58418b9
treeb12a04f234312f45750003429534b441ef268770
parentffb129ef2b83352b5488427b19e4be7a4d783cfc
mgr: skip first non-zero incremental in PGMap::apply_incremental()

After initialization of PGMap instance PGMap::stamp is zero
and this cause huge first delta.
Also after mgr restart first non-zero value coming to PGMap::apply_incremental()
is current pg_sum value so it produces unreasonably huge pg_sum_delta.
This patch introduces a workaround to save pg_sum and not update pg_sum_delta
by first non-zero incremental.

Signed-off-by: Aleksei Gutikov <aleksey.gutikov@synesis.ru>
Fixes: http://tracker.ceph.com/issues/21773
src/mon/PGMap.cc