summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2022-05-27 14:57:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-27 17:37:19 +0000
commit3da01eeee8270960d88a71e434ea2ee9c0f04457 (patch)
tree760e0018bc6af108c342c9c819f8d0eb04d9ab90
parente43fd84f5a5a49f05582c887f67e03dce6b44e0d (diff)
downloadmongo-3da01eeee8270960d88a71e434ea2ee9c0f04457.tar.gz
SERVER-66828 Fix coverity defect
(cherry picked from commit 1bb4f64ef836c0c1a20955d8f6d559eaffe08563)
-rw-r--r--src/mongo/db/transaction_participant.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_participant.cpp b/src/mongo/db/transaction_participant.cpp
index 77817e23ed2..d7f95a93fa9 100644
--- a/src/mongo/db/transaction_participant.cpp
+++ b/src/mongo/db/transaction_participant.cpp
@@ -182,7 +182,8 @@ auto performReadWithNoTimestampDBDirectClient(OperationContext* opCtx, Callable&
}
void rethrowPartialIndexQueryBadValueWithContext(const DBException& ex) {
- if (ex.reason().find("hint provided does not correspond to an existing index")) {
+ if (ex.reason().find("hint provided does not correspond to an existing index") !=
+ std::string::npos) {
uassertStatusOKWithContext(
ex.toStatus(),
str::stream()