diff options
author | Benety Goh <benety@mongodb.com> | 2022-10-12 09:11:15 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-12 14:11:50 +0000 |
commit | d6f85073849817aa6224f5c7f0c48f36a3c24ff3 (patch) | |
tree | 410de4a2b9639a6eeae42ce909455b66c2cbdf6d /src/mongo/db/s/resharding | |
parent | ea85b99ada1fe21761f1e4f442f53509fda09d3a (diff) | |
download | mongo-d6f85073849817aa6224f5c7f0c48f36a3c24ff3.tar.gz |
SERVER-69749 TransactionParticipant::retrieveCompletedTransactionOperations() returns TransactionOperations
Diffstat (limited to 'src/mongo/db/s/resharding')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_application.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_application.cpp b/src/mongo/db/s/resharding/resharding_oplog_application.cpp index f7d4dcb468f..cbdc9319c59 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_application.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_application.cpp @@ -105,7 +105,7 @@ void runWithTransaction(OperationContext* opCtx, func(asr.opCtx()); - if (txnParticipant.retrieveCompletedTransactionOperations(asr.opCtx())->size() > 0) { + if (!txnParticipant.retrieveCompletedTransactionOperations(asr.opCtx())->isEmpty()) { // Similar to the `isTimestamped` check in `applyOperation`, we only want to commit the // transaction if we're doing replicated writes. txnParticipant.commitUnpreparedTransaction(asr.opCtx()); |