diff options
Diffstat (limited to 'src/mongo/db/repl/tenant_oplog_applier.cpp')
-rw-r--r-- | src/mongo/db/repl/tenant_oplog_applier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/tenant_oplog_applier.cpp b/src/mongo/db/repl/tenant_oplog_applier.cpp index 520c4f5b0f8..f55ce6a539f 100644 --- a/src/mongo/db/repl/tenant_oplog_applier.cpp +++ b/src/mongo/db/repl/tenant_oplog_applier.cpp @@ -439,8 +439,8 @@ Status TenantOplogApplier::_applyOplogEntryOrGroupedInserts( OperationContext* opCtx, const OplogEntryOrGroupedInserts& entryOrGroupedInserts, OplogApplication::Mode oplogApplicationMode) { - // We must ensure the opCtx uses replicated writes, because that will ensure we get a NotMaster - // error if a stepdown occurs. + // We must ensure the opCtx uses replicated writes, because that will ensure we get a + // NotWritablePrimary error if a stepdown occurs. invariant(opCtx->writesAreReplicated()); // Ensure context matches that of _applyOplogBatchPerWorker. |