From: Sage Weil Date: Tue, 9 Jul 2013 05:06:31 +0000 (-0700) Subject: mon/PaxosService: update docs a bit X-Git-Tag: v0.67-rc1~134^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8799872d0e6dcad5d139b8ebb209dcd21c036fc4;p=ceph.git mon/PaxosService: update docs a bit Signed-off-by: Sage Weil --- diff --git a/src/mon/PaxosService.h b/src/mon/PaxosService.h index 6e1b136cde0f..25bf8994bc29 100644 --- a/src/mon/PaxosService.h +++ b/src/mon/PaxosService.h @@ -461,11 +461,6 @@ public: */ virtual void tick() {} - /** - * called at same interval as tick. consider a trim. - */ - void maybe_trim(); - /** * Get health information * @@ -649,6 +644,13 @@ public: * @defgroup PaxosService_h_Trim * @{ */ + /** + * trim service states if appropriate + * + * Called at same interval as tick() + */ + void maybe_trim(); + /** * Auxiliary function to trim our state from version @from to version @to, * not including; i.e., the interval [from, to[ @@ -670,12 +672,15 @@ public: /** * Get the version we should trim to. * + * Should be overloaded by service if it wants to trim states. + * * @returns the version we should trim to; if we return zero, it should be * assumed that there's no version to trim to. */ virtual version_t get_trim_to() { return 0; } + /** * @} */