]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: correct typo UNKOWN to UNKNOWN 19273/head
authorBingyin Zhang <zhangbingyin@cloudin.cn>
Fri, 1 Dec 2017 06:54:19 +0000 (14:54 +0800)
committerBingyin Zhang <zhangbingyin@cloudin.cn>
Fri, 1 Dec 2017 07:30:01 +0000 (15:30 +0800)
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
doc/man/8/ceph-detect-init.rst
src/os/ObjectStore.h
src/rgw/rgw_rest_s3.cc

index c409a949d4399fd214ca9c1c51275838c6db0b36..cbfcbeb2c330f3d8ee3bd74bc9b812c4e51e5867 100644 (file)
@@ -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
index d4fc72255c23f8944a5ad23c3e9a71d95c7c5757..b0ff0a9592684a332e381e927f461b78fdc5e3b1 100644 (file)
@@ -719,7 +719,7 @@ public:
         break;
 
       default:
-        assert(0 == "Unkown OP");
+        assert(0 == "Unknown OP");
       }
     }
     void _update_op_bl(
index bc0c4ac18715bc36f768b470f61c031fbcffb2f5..3adfb607f80bd6c16569ef306e3d135eb7661917 100644 (file)
@@ -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;
 }