diff options
Diffstat (limited to 'src/mongo/db/commands/dbcheck.cpp')
-rw-r--r-- | src/mongo/db/commands/dbcheck.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mongo/db/commands/dbcheck.cpp b/src/mongo/db/commands/dbcheck.cpp index 3650b93af48..fe7bcd178c6 100644 --- a/src/mongo/db/commands/dbcheck.cpp +++ b/src/mongo/db/commands/dbcheck.cpp @@ -461,9 +461,21 @@ private: const BSONObj& obj) { return writeConflictRetry( opCtx, "dbCheck oplog entry", NamespaceString::kRsOplogNamespace.ns(), [&] { + auto const clockSource = opCtx->getServiceContext()->getFastClockSource(); + const auto wallClockTime = clockSource->now(); + WriteUnitOfWork uow(opCtx); - repl::OpTime result = repl::logOp( - opCtx, "c", nss, uuid, obj, nullptr, false, {}, kUninitializedStmtId, {}); + repl::OpTime result = repl::logOp(opCtx, + "c", + nss, + uuid, + obj, + nullptr, + false, + wallClockTime, + {}, + kUninitializedStmtId, + {}); uow.commit(); return result; }); |