diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-03-23 10:04:42 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-24 20:22:44 +0000 |
commit | edb8778350326d2b33f056b1b5f0b25a4b5b444a (patch) | |
tree | 15afcaa7a707be0872b764cd054aee55d855ba92 /src/mongo/executor/connection_pool.cpp | |
parent | 51b338ad41653a8188adcc67b682ea12bbe63b4d (diff) | |
download | mongo-edb8778350326d2b33f056b1b5f0b25a4b5b444a.tar.gz |
SERVER-47040 LOGV2_FATAL also fasserts
Added LOGV2_FATAL_NOTRACE and LOGV2_CONTINUE to have different behavior.
Diffstat (limited to 'src/mongo/executor/connection_pool.cpp')
-rw-r--r-- | src/mongo/executor/connection_pool.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/executor/connection_pool.cpp b/src/mongo/executor/connection_pool.cpp index 0cc26800c65..2b4492fbba4 100644 --- a/src/mongo/executor/connection_pool.cpp +++ b/src/mongo/executor/connection_pool.cpp @@ -340,8 +340,7 @@ public: void fassertSSLModeIs(transport::ConnectSSLMode desired) const { if (desired != _sslMode) { - LOGV2_FATAL(22580, "Mixing ssl modes for a single host is not supported"); - fassertFailedNoTrace(51043); + LOGV2_FATAL_NOTRACE(51043, "Mixing ssl modes for a single host is not supported"); } } @@ -1016,10 +1015,9 @@ void ConnectionPool::SpecificPool::spawnConnections() { // make a new connection and put it in processing handle = _parent->_factory->makeConnection(_hostAndPort, _sslMode, _generation); } catch (std::system_error& e) { - LOGV2_FATAL(22581, + LOGV2_FATAL(40336, "Failed to construct a new connection object: {e_what}", "e_what"_attr = e.what()); - fassertFailed(40336); } _processingPool[handle.get()] = handle; |