diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2019-07-04 17:57:25 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2019-07-09 14:32:01 -0400 |
commit | f2bb23436a46afacfc8e3dc65fda743fafe6b2c3 (patch) | |
tree | 990d9667db82f124bde3392c0240220a3707cbe1 /src/mongo/shell/shell_utils_launcher.cpp | |
parent | a7cb58fe04b1a13909e98829a9235eb4fa837e8c (diff) | |
download | mongo-f2bb23436a46afacfc8e3dc65fda743fafe6b2c3.tar.gz |
SERVER-42034 remove BSONObjBuilder::numStr
Callers are better with either DecimalCounter or std::to_string.
Diffstat (limited to 'src/mongo/shell/shell_utils_launcher.cpp')
-rw-r--r-- | src/mongo/shell/shell_utils_launcher.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/shell/shell_utils_launcher.cpp b/src/mongo/shell/shell_utils_launcher.cpp index 8cdedda01e6..5b7c68d5363 100644 --- a/src/mongo/shell/shell_utils_launcher.cpp +++ b/src/mongo/shell/shell_utils_launcher.cpp @@ -927,8 +927,7 @@ inline void kill_wrapper(ProcessId pid, int sig, int port, const BSONObj& opt) { // try { DBClientConnection conn; - conn.connect(HostAndPort{"127.0.0.1:" + BSONObjBuilder::numStr(port)}, - "MongoDB Shell"); + conn.connect(HostAndPort{"127.0.0.1:" + std::to_string(port)}, "MongoDB Shell"); BSONElement authObj = opt["auth"]; |