From 450ffbb63d5b265d2e17c6ec4556f030099b9f60 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Sat, 4 Feb 2023 11:55:29 +0000 Subject: SERVER-70905 add missing invariant --- src/mongo/db/repl/oplog_applier_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mongo/db/repl/oplog_applier_impl.cpp b/src/mongo/db/repl/oplog_applier_impl.cpp index 5ebe08bee80..35fa85e2ced 100644 --- a/src/mongo/db/repl/oplog_applier_impl.cpp +++ b/src/mongo/db/repl/oplog_applier_impl.cpp @@ -817,6 +817,7 @@ void OplogApplierImpl::_deriveOpsAndFillWriterVectors( auto* partialTxnList = getPartialTxnList(op); _addOplogChainOpsToWriterVectors( opCtx, partialTxnList, derivedOps, &op, &collPropertiesCache, writerVectors); + invariant(partialTxnList->empty(), op.toStringForLogging()); continue; } if (op.isPreparedCommit() && -- cgit v1.2.1