diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-05-27 14:57:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-27 16:02:43 +0000 |
commit | 1bb4f64ef836c0c1a20955d8f6d559eaffe08563 (patch) | |
tree | 4eb2aa93c87363379e7d84bc99ee90d8e3520a50 /src/mongo/db | |
parent | 2cbe2539dc4ae363686409c7ec8b67fa36eddc29 (diff) | |
download | mongo-1bb4f64ef836c0c1a20955d8f6d559eaffe08563.tar.gz |
SERVER-66828 Fix coverity defect
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/transaction_participant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_participant.cpp b/src/mongo/db/transaction_participant.cpp index 1cff05f29be..53fcc779d88 100644 --- a/src/mongo/db/transaction_participant.cpp +++ b/src/mongo/db/transaction_participant.cpp @@ -184,7 +184,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() |