diff --git a/mcrouter/CarbonRouterInstance.h b/mcrouter/CarbonRouterInstance.h index ef72df3f2..05f32312b 100644 --- a/mcrouter/CarbonRouterInstance.h +++ b/mcrouter/CarbonRouterInstance.h @@ -36,7 +36,7 @@ class McrouterManager; class ProxyThread; /** - * Class to to read CPU metrics of the mcrouter proxy threads + * Class to read CPU metrics of the mcrouter proxy threads * based on a FunctionScheduler */ class CpuStatsWorker { diff --git a/mcrouter/ConfigApi.h b/mcrouter/ConfigApi.h index 2dd640c36..6c506eee3 100644 --- a/mcrouter/ConfigApi.h +++ b/mcrouter/ConfigApi.h @@ -169,7 +169,7 @@ class ConfigApi : public ConfigApiIf { * Save a piece of config source to disk. * * @param sourcePrefix Where this config comes from (e.g. file). - * @param name Name of this peice of config. + * @param name Name of this piece of config. * NOTE: sourcePrefix + name should uniquely identify * this config source. * @param contents The actual config. @@ -191,7 +191,7 @@ class ConfigApi : public ConfigApiIf { * Reads the given config source from backup file. * * @param sourcePrefix Where this config comes from (e.g. file). - * @param name Name of this peice of config. + * @param name Name of this piece of config. * @param contents Output parameter that will hold the content of the * backup file * diff --git a/mcrouter/lib/network/AsyncMcClientImpl.cpp b/mcrouter/lib/network/AsyncMcClientImpl.cpp index b245dc6a7..5492d07b3 100644 --- a/mcrouter/lib/network/AsyncMcClientImpl.cpp +++ b/mcrouter/lib/network/AsyncMcClientImpl.cpp @@ -688,7 +688,7 @@ void AsyncMcClientImpl::writeSuccess() noexcept { } while (!last); // It is possible that we're already processing error, but still have a - // successfull write. + // successful write. if (connectionState_ == ConnectionState::Error) { processShutdown("Connection was in ERROR state."); } diff --git a/mcrouter/lib/network/McServerSession.h b/mcrouter/lib/network/McServerSession.h index 7b8735143..3352574b4 100644 --- a/mcrouter/lib/network/McServerSession.h +++ b/mcrouter/lib/network/McServerSession.h @@ -118,7 +118,7 @@ class McServerSession * Creates a new session. * Sessions manage their own lifetime. * A session will self-destruct right after an onCloseFinish() callback - * call, by which point all of the following must have occured: + * call, by which point all of the following must have occurred: * 1) All outstanding requests have been replied and pending * writes have been completed/errored out. * 2) The outgoing connection is closed, either via an explicit close() diff --git a/mcrouter/lib/network/SocketConnector.cpp b/mcrouter/lib/network/SocketConnector.cpp index 06f7e85d2..96b36d120 100644 --- a/mcrouter/lib/network/SocketConnector.cpp +++ b/mcrouter/lib/network/SocketConnector.cpp @@ -49,7 +49,7 @@ class ConnectHelper : public folly::AsyncSocket::ConnectCallback, private: // the async socket to connect folly::AsyncSocket::UniquePtr socket_; - // promise we will fullfill + // promise we will fulfill folly::Promise promise_; }; diff --git a/mcrouter/mcrouter_options_list.h b/mcrouter/mcrouter_options_list.h index 94c4eed38..dc802aab8 100644 --- a/mcrouter/mcrouter_options_list.h +++ b/mcrouter/mcrouter_options_list.h @@ -217,7 +217,7 @@ MCROUTER_OPTION_INTEGER( 1000, "file-observer-sleep-before-update-ms", no_short, - "How long to sleep for after an update occured" + "How long to sleep for after an update occurred" " (a hack to avoid partial writes).") MCROUTER_OPTION_INTEGER( diff --git a/mcrouter/routes/StagingRoute.h b/mcrouter/routes/StagingRoute.h index 22d2b22f8..4471fef16 100644 --- a/mcrouter/routes/StagingRoute.h +++ b/mcrouter/routes/StagingRoute.h @@ -66,7 +66,7 @@ namespace mcrouter { * route. * * Expiration time (TTL) for objects from warm -> staging update requests is - * calculated based on the object's metadata retreived from warm route async. + * calculated based on the object's metadata retrieved from warm route async. */ class StagingRoute { public: