]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PaxosService: update on_active() docs to clarify calling rules
authorSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 23:59:15 +0000 (16:59 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 23:59:15 +0000 (16:59 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PaxosService.h

index a5761d19ad8371d6628219a09a0aef02c1290ac6..74d5a90494c87367996ba9f5be92ed6e224e61ac 100644 (file)
@@ -438,8 +438,9 @@ public:
   /**
    * This is called when the Paxos state goes to active.
    *
-   * @remarks It's a courtesy method, in case the class implementing this 
-   *         service has anything it wants/needs to do at that time.
+   * On the peon, this is after each election.
+   * On the leader, this is after each election, *and* after each completed
+   * proposal.
    *
    * @note This function may get called twice in certain recovery cases.
    */