From 3b062b42782acd88f53817c716b69637e8bcb928 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 18 Sep 2018 11:31:34 +0800 Subject: [PATCH] rgw: fix typos Signed-off-by: Kefu Chai --- src/rgw/rgw_auth_s3.h | 2 +- src/rgw/rgw_cr_rados.h | 2 +- src/rgw/rgw_rados.h | 4 ++-- src/rgw/rgw_realm_reloader.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rgw/rgw_auth_s3.h b/src/rgw/rgw_auth_s3.h index 0a3341385d8a2..cfaeb25a256c9 100644 --- a/src/rgw/rgw_auth_s3.h +++ b/src/rgw/rgw_auth_s3.h @@ -445,7 +445,7 @@ static inline std::string get_v4_canonical_uri(const req_info& info) { static inline const char* get_v4_exp_payload_hash(const req_info& info) { - /* In AWSv4 the hash of real, transfered payload IS NOT necessary to form + /* In AWSv4 the hash of real, transferred payload IS NOT necessary to form * a Canonical Request, and thus verify a Signature. x-amz-content-sha256 * header lets get the information very early -- before seeing first byte * of HTTP body. As a consequence, we can decouple Signature verification diff --git a/src/rgw/rgw_cr_rados.h b/src/rgw/rgw_cr_rados.h index 8be607c03106b..ba660ec466fe0 100644 --- a/src/rgw/rgw_cr_rados.h +++ b/src/rgw/rgw_cr_rados.h @@ -243,7 +243,7 @@ int RGWSimpleRadosReadCR::request_complete() if (iter.end()) { // allow successful reads with empty buffers. ReadSyncStatus coroutines // depend on this to be able to read without locking, because the - // cls lock from InitSyncStatus will create an empty object if it didnt + // cls lock from InitSyncStatus will create an empty object if it didn't // exist *result = T(); } else { diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 28618413ff701..32d913dbcfb86 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1674,7 +1674,7 @@ struct RGWZoneGroupMap { RGWQuotaInfo bucket_quota; RGWQuotaInfo user_quota; - /* constract the map */ + /* construct the map */ int read(CephContext *cct, RGWRados *store); void encode(bufferlist& bl) const; @@ -3602,7 +3602,7 @@ public: url_encode(string(buf) + get_zone_params().get_name(), trans_id_suffix); } - /* In order to preserve compability with Swift API, transaction ID + /* In order to preserve compatibility with Swift API, transaction ID * should contain at least 32 characters satisfying following spec: * - first 21 chars must be in range [0-9a-f]. Swift uses this * space for storing fragment of UUID obtained through a call to diff --git a/src/rgw/rgw_realm_reloader.h b/src/rgw/rgw_realm_reloader.h index aea21d5833820..1277429e5b345 100644 --- a/src/rgw/rgw_realm_reloader.h +++ b/src/rgw/rgw_realm_reloader.h @@ -20,7 +20,7 @@ class RGWRealmReloader : public RGWRealmWatcher::Watcher { * is required to ensure that they stop issuing requests on the old * RGWRados instance, and restart with the updated configuration. * - * This abstraction avoids a depency on class RGWFrontend. + * This abstraction avoids a dependency on class RGWFrontend. */ class Pauser { public: -- 2.39.5