diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2019-04-08 16:27:50 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2019-04-09 15:38:40 -0400 |
commit | 1041dd848e25e879260d1015d8da4f72ee7993fe (patch) | |
tree | f8ddb4ee7c841e4ef790ea7bd53e75c0a09c4cc2 /src/mongo/shell/shell_options.cpp | |
parent | 8cdc51e7810f7fd8898a4c60b935e389f04659ee (diff) | |
download | mongo-1041dd848e25e879260d1015d8da4f72ee7993fe.tar.gz |
SERVER-40476 remove mongoutils::str
Rename utils/mongoutils/str.h => utils/str.h
Rename namespace mongoutils::str => str
Rename mongo::strcasecmp => str::caseInsensitiveCompare.
Diffstat (limited to 'src/mongo/shell/shell_options.cpp')
-rw-r--r-- | src/mongo/shell/shell_options.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp index 857a6003ac1..bd20f6bd632 100644 --- a/src/mongo/shell/shell_options.cpp +++ b/src/mongo/shell/shell_options.cpp @@ -47,9 +47,9 @@ #include "mongo/shell/shell_utils.h" #include "mongo/transport/message_compressor_registry.h" #include "mongo/util/log.h" -#include "mongo/util/mongoutils/str.h" #include "mongo/util/net/socket_utils.h" #include "mongo/util/options_parser/startup_options.h" +#include "mongo/util/str.h" #include "mongo/util/version.h" namespace mongo { @@ -177,7 +177,7 @@ Status storeMongoShellOptions(const moe::Environment& params, if (params.count("writeMode")) { std::string mode = params["writeMode"].as<string>(); if (mode != "commands" && mode != "legacy" && mode != "compatibility") { - uasserted(17396, mongoutils::str::stream() << "Unknown writeMode option: " << mode); + uasserted(17396, str::stream() << "Unknown writeMode option: " << mode); } shellGlobalParams.writeMode = mode; } @@ -185,10 +185,8 @@ Status storeMongoShellOptions(const moe::Environment& params, std::string mode = params["readMode"].as<string>(); if (mode != "commands" && mode != "compatibility" && mode != "legacy") { uasserted(17397, - mongoutils::str::stream() - << "Unknown readMode option: '" - << mode - << "'. Valid modes are: {commands, compatibility, legacy}"); + str::stream() << "Unknown readMode option: '" << mode + << "'. Valid modes are: {commands, compatibility, legacy}"); } shellGlobalParams.readMode = mode; } |