summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_connection.cpp')
-rw-r--r--src/mongo/client/dbclient_connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/dbclient_connection.cpp b/src/mongo/client/dbclient_connection.cpp
index bc65eb35938..0d058396c0f 100644
--- a/src/mongo/client/dbclient_connection.cpp
+++ b/src/mongo/client/dbclient_connection.cpp
@@ -577,7 +577,7 @@ void DBClientConnection::say(Message& toSend, bool isRetry, string* actualServer
toSend.header().setId(nextMessageId());
toSend.header().setResponseToMsgId(0);
- if (!MONGO_FAIL_POINT(dbClientConnectionDisableChecksum)) {
+ if (!MONGO_unlikely(dbClientConnectionDisableChecksum.shouldFail())) {
#ifdef MONGO_CONFIG_SSL
if (!SSLPeerInfo::forSession(_session).isTLS) {
OpMsg::appendChecksum(&toSend);
@@ -627,7 +627,7 @@ bool DBClientConnection::call(Message& toSend,
toSend.header().setId(nextMessageId());
toSend.header().setResponseToMsgId(0);
- if (!MONGO_FAIL_POINT(dbClientConnectionDisableChecksum)) {
+ if (!MONGO_unlikely(dbClientConnectionDisableChecksum.shouldFail())) {
#ifdef MONGO_CONFIG_SSL
if (!SSLPeerInfo::forSession(_session).isTLS) {
OpMsg::appendChecksum(&toSend);