Skip to content

Commit 318fd9c

Browse files
committed
SERVER-58546 Add log message to applyOps to preview which oplog entries will be applied
(cherry picked from commit de68208)
1 parent 0788536 commit 318fd9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mongo/db/repl/apply_ops.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@ Status applyOps(OperationContext* opCtx,
430430
}
431431
}
432432

433+
LOGV2_DEBUG(5854600,
434+
2,
435+
"applyOps command",
436+
"dbName"_attr = redact(dbName),
437+
"cmd"_attr = redact(applyOpCmd));
438+
433439
if (!info.isAtomic()) {
434440
return _applyOps(opCtx, info, oplogApplicationMode, result, &numApplied, nullptr);
435441
}

0 commit comments

Comments
 (0)