summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-19 16:59:15 -0700
committerSage Weil <sage@inktank.com>2013-07-19 16:59:15 -0700
commit0356eebfa51d0f3bb94102c271776250f610d090 (patch)
treeea835825e338001962fc39f8a7591e4974273d28
parent6d326b84248b6069e8c90acdf1389204848f1bd3 (diff)
downloadceph-0356eebfa51d0f3bb94102c271776250f610d090.tar.gz
mon/PaxosService: update on_active() docs to clarify calling rules
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/mon/PaxosService.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mon/PaxosService.h b/src/mon/PaxosService.h
index a5761d19ad8..74d5a90494c 100644
--- a/src/mon/PaxosService.h
+++ b/src/mon/PaxosService.h
@@ -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.
*/