From 34975103eae6e9c0061512e6e000d6f8e1093f20 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 18 Sep 2018 11:27:25 +0800 Subject: [PATCH] mgr/PyFormatter: fix typos Signed-off-by: Kefu Chai --- src/mgr/PyFormatter.h | 6 +++--- src/mon/Elector.h | 4 ++-- src/mon/PGMap.h | 2 +- src/mon/Paxos.h | 2 +- src/mon/PaxosService.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mgr/PyFormatter.h b/src/mgr/PyFormatter.h index d65e14167e9..3e0bd0e1aa7 100644 --- a/src/mgr/PyFormatter.h +++ b/src/mgr/PyFormatter.h @@ -91,20 +91,20 @@ public: void flush(std::ostream& os) override { - // This class is not a serializer: this doens't make sense + // This class is not a serializer: this doesn't make sense ceph_abort(); } int get_len() const override { - // This class is not a serializer: this doens't make sense + // This class is not a serializer: this doesn't make sense ceph_abort(); return 0; } void write_raw_data(const char *data) override { - // This class is not a serializer: this doens't make sense + // This class is not a serializer: this doesn't make sense ceph_abort(); } diff --git a/src/mon/Elector.h b/src/mon/Elector.h index 07edb6405c5..6d311f8eacd 100644 --- a/src/mon/Elector.h +++ b/src/mon/Elector.h @@ -99,7 +99,7 @@ class Elector { * Indicates if we are participating in the quorum. * * @remarks By default, we are created as participating. We may stop - * participating if the Monitor explicitely calls + * participating if the Monitor explicitly calls * Elector::stop_participating though. If that happens, it will * have to call Elector::start_participating for us to resume * participating in the quorum. @@ -195,7 +195,7 @@ class Elector { * * When the election expires, we will check if we were the ones who won, and * if so we will declare victory. If that is not the case, then we assume - * that the one we defered to didn't declare victory quickly enough (in fact, + * that the one we deferred to didn't declare victory quickly enough (in fact, * as far as we know, we may even be dead); so, just propose ourselves as the * Leader. */ diff --git a/src/mon/PGMap.h b/src/mon/PGMap.h index ce4d9efab0a..7c8f1077df4 100644 --- a/src/mon/PGMap.h +++ b/src/mon/PGMap.h @@ -84,7 +84,7 @@ public: /** * keep track of sum deltas, per-pool, taking into account any previous * deltas existing in @p per_pool_sum_deltas. The utime_t as second member - * of the pair is the timestamp refering to the last update (i.e., the first + * of the pair is the timestamp referring to the last update (i.e., the first * member of the pair) for a given pool. */ mempool::pgmap::unordered_map > per_pool_sum_delta; diff --git a/src/mon/Paxos.h b/src/mon/Paxos.h index ddb9fbbf02c..2b2e71d94a1 100644 --- a/src/mon/Paxos.h +++ b/src/mon/Paxos.h @@ -162,7 +162,7 @@ enum { // i am one state machine. /** - * This libary is based on the Paxos algorithm, but varies in a few key ways: + * This library 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' mechanism is built-in, allowing nodes to determine when it is diff --git a/src/mon/PaxosService.h b/src/mon/PaxosService.h index 3e396b37861..d1b96b9a191 100644 --- a/src/mon/PaxosService.h +++ b/src/mon/PaxosService.h @@ -682,7 +682,7 @@ public: * @note We force every service to implement this function, since we strongly * desire the encoding of full versions. * @note Services that do not trim their state, will be bound to only create - * one full version. Full version stashing is determined/controled by + * one full version. Full version stashing is determined/controlled by * trimming: we stash a version each time a trim is bound to erase the * latest full version. * -- 2.39.5