]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/PyFormatter: fix typos
authorKefu Chai <kchai@redhat.com>
Tue, 18 Sep 2018 03:27:25 +0000 (11:27 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 04:43:33 +0000 (12:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/PyFormatter.h
src/mon/Elector.h
src/mon/PGMap.h
src/mon/Paxos.h
src/mon/PaxosService.h

index d65e14167e97ca3b833ca6f20a7a360a6f665cea..3e0bd0e1aa7230079edfd83f1ae09c6dc866d006 100644 (file)
@@ -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();
   }
 
index 07edb6405c52ed444b988b5fc16f382c393566ac..6d311f8eacdd3119ff2e8d3f933f0a2b0a56e21e 100644 (file)
@@ -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.
    */
index ce4d9efab0a37213b22eacc5695f18889b4d192b..7c8f1077df45c71a140a44baf340d240c214f77a 100644 (file)
@@ -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<uint64_t, pair<pool_stat_t,utime_t> > per_pool_sum_delta;
index ddb9fbbf02c7f44dd1be946fafe240290b9e31e1..2b2e71d94a131b6bc6f07ba0d64cfb374cd58070 100644 (file)
@@ -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 
index 3e396b3786171b6c40778fcc189732fef5a81777..d1b96b9a191aa515c04bc2d9ad521b9dba69fde4 100644 (file)
@@ -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.
    *