]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: compact trimmed range, not entire prefix
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 15:40:32 +0000 (08:40 -0700)
committerSage Weil <sage@inktank.com>
Sun, 2 Jun 2013 21:09:51 +0000 (14:09 -0700)
commitd14665e550d9b2dfc47684b73427042b0744127f
tree84fd8d86912e4bba2bca36a48aa24ea1767bf457
parentdcd9b793fb0b05976b55be029315114d6f1df0e5
mon: compact trimmed range, not entire prefix

This will reduce the work that leveldb is asked to do by only triggering
compaction of the keys that were just trimmed.

We ma want to further reduce the work by compacting less frequently, but
this is at least a step in that direction.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 6da4b20ca53fc8161485c8a99a6b333e23ace30e)
src/mon/Paxos.cc
src/mon/PaxosService.cc