diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_application.cpp')
-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()); |