From ecbe65bd2258e29849429d8a3c8b7f1e28f0e848 Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Fri, 1 Dec 2017 14:54:19 +0800 Subject: [PATCH] rgw: correct typo UNKOWN to UNKNOWN Signed-off-by: Bingyin Zhang --- doc/man/8/ceph-detect-init.rst | 2 +- src/os/ObjectStore.h | 2 +- src/rgw/rgw_rest_s3.cc | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/man/8/ceph-detect-init.rst b/doc/man/8/ceph-detect-init.rst index c409a949d43..cbfcbeb2c33 100644 --- a/doc/man/8/ceph-detect-init.rst +++ b/doc/man/8/ceph-detect-init.rst @@ -34,7 +34,7 @@ Options .. option:: --default INIT - If the init system of the host operating system is unkown, return + If the init system of the host operating system is unknown, return the value of *INIT* instead of failing with an error. .. option:: --verbose diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index d4fc72255c2..b0ff0a95926 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -719,7 +719,7 @@ public: break; default: - assert(0 == "Unkown OP"); + assert(0 == "Unknown OP"); } } void _update_op_bl( diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index bc0c4ac1871..3adfb607f80 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -3289,13 +3289,13 @@ int RGWHandler_REST_S3::init(RGWRados *store, struct req_state *s, } enum class AwsVersion { - UNKOWN, + UNKNOWN, V2, V4 }; enum class AwsRoute { - UNKOWN, + UNKNOWN, QUERY_STRING, HEADERS }; @@ -3305,8 +3305,8 @@ discover_aws_flavour(const req_info& info) { using rgw::auth::s3::AWS4_HMAC_SHA256_STR; - AwsVersion version = AwsVersion::UNKOWN; - AwsRoute route = AwsRoute::UNKOWN; + AwsVersion version = AwsVersion::UNKNOWN; + AwsRoute route = AwsRoute::UNKNOWN; const char* http_auth = info.env->get("HTTP_AUTHORIZATION"); if (http_auth && http_auth[0]) { @@ -4204,5 +4204,5 @@ bool rgw::auth::s3::S3AnonymousEngine::is_applicable( AwsRoute route; std::tie(version, route) = discover_aws_flavour(s->info); - return route == AwsRoute::QUERY_STRING && version == AwsVersion::UNKOWN; + return route == AwsRoute::QUERY_STRING && version == AwsVersion::UNKNOWN; } -- 2.39.5