]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: make service trim_to stateless
authorSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 04:54:53 +0000 (21:54 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 18:09:46 +0000 (11:09 -0700)
commitda248a9e1dc98e88e1f00b5104f77f98a2b8503b
treed921693a1a4077eefbaaf73ac1d80c17756e5417
parent886b637b64d7418532eedbcbba1e9f5211bcdd0f
mon: make service trim_to stateless

Call get_trim_to() when we need to know how much to trim (if any), and
calculate it then.  No need to keep this in a hidden trim_version
variable and remember to update it.  This drops several helpers and
accessors and makes get_trim_to() a single method that services need to
override.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h
src/mon/LogMonitor.cc
src/mon/LogMonitor.h
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/mon/PGMonitor.cc
src/mon/PGMonitor.h
src/mon/PaxosService.cc
src/mon/PaxosService.h