Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: correct typo UNKOWN to UNKNOWN #19273

Merged
merged 1 commit into from Dec 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/man/8/ceph-detect-init.rst
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/os/ObjectStore.h
Expand Up @@ -719,7 +719,7 @@ class ObjectStore {
break;

default:
assert(0 == "Unkown OP");
assert(0 == "Unknown OP");
}
}
void _update_op_bl(
Expand Down
10 changes: 5 additions & 5 deletions src/rgw/rgw_rest_s3.cc
Expand Up @@ -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
};
Expand All @@ -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]) {
Expand Down Expand Up @@ -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;
}