You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by rr...@apache.org on 2019/07/21 23:04:50 UTC

[trafficserver] branch master updated: Fixes spelling in lib/records

This is an automated email from the ASF dual-hosted git repository.

rrm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 6486b00  Fixes spelling in lib/records
6486b00 is described below

commit 6486b00f566aef5d9c2903c0dfcc745aeb71f11c
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Fri Jul 19 15:47:03 2019 -0700

    Fixes spelling in lib/records
---
 lib/records/I_RecCore.h        | 2 +-
 lib/records/I_RecDefs.h        | 4 ++--
 lib/records/I_RecHttp.h        | 2 +-
 lib/records/RecCore.cc         | 4 ++--
 lib/records/RecMessage.cc      | 4 ++--
 lib/records/test_I_RecLocal.cc | 2 +-
 lib/records/test_RecProcess.i  | 2 +-
 7 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/lib/records/I_RecCore.h b/lib/records/I_RecCore.h
index 0fd60ef..6a0e3b2 100644
--- a/lib/records/I_RecCore.h
+++ b/lib/records/I_RecCore.h
@@ -133,7 +133,7 @@ RecErrT RecRegisterRawStatUpdateFunc(const char *name, RecRawStatBlock *rsb, int
 //-------------------------------------------------------------------------
 
 // WARNING!  Avoid deadlocks by calling the following set/get calls
-// with the appropiate locking conventions.  If you're calling these
+// with the appropriate locking conventions.  If you're calling these
 // functions from a configuration update callback (RecConfigUpdateCb),
 // be sure to set 'lock' to 'false' as the hash-table rwlock has
 // already been taken out for the callback.
diff --git a/lib/records/I_RecDefs.h b/lib/records/I_RecDefs.h
index 04f5f5e..cfe9206 100644
--- a/lib/records/I_RecDefs.h
+++ b/lib/records/I_RecDefs.h
@@ -76,7 +76,7 @@ enum RecPersistT {
 
 // RECP_NULL should never be used by callers of RecRegisterStat*(). You have to decide
 // whether to persist stats or not. The template goop below make sure that passing RECP_NULL
-// is a very ugle compile-time error.
+// is a very ugly compile-time error.
 
 namespace rec
 {
@@ -152,7 +152,7 @@ struct RecRawStat {
   int64_t count;
   // XXX - these will waste some space because they are only needed for the globals
   // this is a fix for bug TS-162, so I am trying to do as few code changes as
-  // possible, this should be revisted -bcall
+  // possible, this should be revisited -bcall
   int64_t last_sum;   // value from the last global sync
   int64_t last_count; // value from the last global sync
   uint32_t version;
diff --git a/lib/records/I_RecHttp.h b/lib/records/I_RecHttp.h
index fda5176..bb70597 100644
--- a/lib/records/I_RecHttp.h
+++ b/lib/records/I_RecHttp.h
@@ -152,7 +152,7 @@ const char *RecNormalizeProtoTag(const char *tag);
     their indices in this table.
 
     @internal To simplify the implementation we limit the maximum number of strings to 32. That will
-    be sufficient for the forseeable future. We can come back to this if it ever becomes a problem.
+    be sufficient for the foreseeable future. We can come back to this if it ever becomes a problem.
 
     @internal Because we have so few strings we just use a linear search. If the size gets much
     larger we should consider doing something more clever.
diff --git a/lib/records/RecCore.cc b/lib/records/RecCore.cc
index ba2e833..cad71d0 100644
--- a/lib/records/RecCore.cc
+++ b/lib/records/RecCore.cc
@@ -162,7 +162,7 @@ link_byte(const char * /* name */, RecDataT /* data_type */, RecData data, void
 }
 
 // mimic Config.cc::config_string_alloc_cb
-// cookie e.g. is the DEFAULT_xxx_str value which this functiion keeps up to date with
+// cookie e.g. is the DEFAULT_xxx_str value which this function keeps up to date with
 // the latest default applied during a config update from records.config
 static int
 link_string_alloc(const char * /* name */, RecDataT /* data_type */, RecData data, void *cookie)
@@ -239,7 +239,7 @@ RecCoreInit(RecModeT mode_type, Diags *_diags)
 }
 
 //-------------------------------------------------------------------------
-// RecLinkCnfigXXX
+// RecLinkConfigXXX
 //-------------------------------------------------------------------------
 RecErrT
 RecLinkConfigInt(const char *name, RecInt *rec_int)
diff --git a/lib/records/RecMessage.cc b/lib/records/RecMessage.cc
index b895256..8a8e04d 100644
--- a/lib/records/RecMessage.cc
+++ b/lib/records/RecMessage.cc
@@ -104,9 +104,9 @@ RecMessageMarshal_Realloc(RecMessage *msg, const RecRecord *record)
   // XXX: this is NOT 8 byte alignment
   // msg_ele_size = 5;
   // (msg_ele_size + 7) & ~7 == 5 !!!
-  // msg_ele_size = (msg_ele_size + 7) & ~7;       // 8 byte alignmenet
+  // msg_ele_size = (msg_ele_size + 7) & ~7;       // 8 byte alignment
 
-  msg_ele_size = INK_ALIGN_DEFAULT(msg_ele_size); // 8 byte alignmenet
+  msg_ele_size = INK_ALIGN_DEFAULT(msg_ele_size); // 8 byte alignment
   // get some space in our buffer
   while (msg->o_end - msg->o_write < msg_ele_size) {
     int realloc_size = (msg->o_end - msg->o_start) * 2;
diff --git a/lib/records/test_I_RecLocal.cc b/lib/records/test_I_RecLocal.cc
index 01c4fcb..f5ba0ab 100644
--- a/lib/records/test_I_RecLocal.cc
+++ b/lib/records/test_I_RecLocal.cc
@@ -193,7 +193,7 @@ main(int argc, char **argv)
 
   // test
   Test01(); // Local callbacks
-  Test02(); // Local callbacks -- mulit-lock
+  Test02(); // Local callbacks -- multi-lock
   Test03(); // RecTree
 
   while (true) {
diff --git a/lib/records/test_RecProcess.i b/lib/records/test_RecProcess.i
index ee3f190..09ec08e 100644
--- a/lib/records/test_RecProcess.i
+++ b/lib/records/test_RecProcess.i
@@ -477,7 +477,7 @@ struct RawStatCont:public Continuation
       printf("      stat_f by RecGetRawStatCount: %d:%d\n", check_stat_f);
     }
 
-    // Compare read value stat_g and expeced value test_raw_stat_g
+    // Compare read value stat_g and expected value test_raw_stat_g
     RecRawStat test_raw_stat_g;
     test_raw_stat_g.sum = REC_ATOMIC_READ64(&(g_rsb->global[MY_STAT_G]->sum));
     RecInt check_stat_g;