]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PaxosService: trim periodically instead of via propose_pending
authorSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 04:38:11 +0000 (21:38 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 04:38:11 +0000 (21:38 -0700)
commit39b71c582628d26e749c23343aa69db079ee40a1
tree1d3c37afe2de0e871db658b27100be28119c8117
parent2f8ff2de170af2b23d6e37143acf130549be2647
mon/PaxosService: trim periodically instead of via propose_pending

We want to trim old states even if there is no update activity.  For
example, if a long-running rebalance finishes all osdmap updates will
stop and we won't trim out old maps to free space.

Instead, trim at the same time as tick().  Remove the trim during
propose_pending() to force all trims through this path and avoid
introducing a new and rarely-exercised behavior.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Monitor.cc
src/mon/PaxosService.cc
src/mon/PaxosService.h