summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2013-09-04 12:31:44 +0200
committerLoic Dachary <loic@dachary.org>2013-09-04 12:34:23 +0200
commitab69d9930912dda07ac415043c2ab829a3e01c55 (patch)
treec40a3fb76f4e329571a2a281b9bca7f676f16774
parent7c09ede7a2ba42639d664570b35386bcdfb63c55 (diff)
downloadceph-ab69d9930912dda07ac415043c2ab829a3e01c55.tar.gz
mon: fix typo and remove redundant sentence
Signed-off-by: Loic Dachary <loic@dachary.org>
-rw-r--r--src/mon/Paxos.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mon/Paxos.h b/src/mon/Paxos.h
index e22e74710a5..764c4fee404 100644
--- a/src/mon/Paxos.h
+++ b/src/mon/Paxos.h
@@ -131,7 +131,7 @@ class Paxos;
* This libary is based on the Paxos algorithm, but varies in a few key ways:
* 1- Only a single new value is generated at a time, simplifying the recovery logic.
* 2- Nodes track "committed" values, and share them generously (and trustingly)
- * 3- A 'leasing' mechism is built-in, allowing nodes to determine when it is
+ * 3- A 'leasing' mechanism is built-in, allowing nodes to determine when it is
* safe to "read" their copy of the last committed value.
*
* This provides a simple replication substrate that services can be built on top of.
@@ -325,8 +325,7 @@ private:
*
* Instead of performing a full commit each time a read is requested, we
* keep leases. Each lease will have an expiration date, which may or may
- * not be extended. This member variable will keep when is the lease
- * expiring.
+ * not be extended.
*/
utime_t lease_expire;
/**