From 82e05d6c201fa59223aa40340a5d4ad84b32ac65 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 22 Jan 2019 17:41:00 +0000 Subject: SERVER-39128 Avoid double-authentication --- src/mongo/shell/shell_utils.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/mongo/shell/shell_utils.cpp') diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp index e44832d9e35..7f8521c6058 100644 --- a/src/mongo/shell/shell_utils.cpp +++ b/src/mongo/shell/shell_utils.cpp @@ -78,7 +78,6 @@ MONGO_REGISTER_SHIM(BenchRunConfig::createConnectionImpl) namespace shell_utils { std::string _dbConnect; -std::string _dbAuth; const char* argv0 = 0; void RecordMyLocation(const char* _argv0) { @@ -349,9 +348,6 @@ void initScope(Scope& scope) { if (!_dbConnect.empty()) { uassert(12513, "connect failed", scope.exec(_dbConnect, "(connect)", false, true, false)); } - if (!_dbAuth.empty()) { - uassert(12514, "login failed", scope.exec(_dbAuth, "(auth)", true, true, false)); - } } Prompter::Prompter(const string& prompt) : _prompt(prompt), _confirmed() {} -- cgit v1.2.1