summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-11-17 17:25:39 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-11-20 10:02:57 -0500
commitc01e10aea6201caae629fa479e3f0e01f31f13c9 (patch)
treef29722052963f63cb20c0cf452ab16cf36cec83a /src/mongo/db/repl/oplog.cpp
parenta7064e087959693534b771962a1b3ad413144240 (diff)
downloadmongo-c01e10aea6201caae629fa479e3f0e01f31f13c9.tar.gz
SERVER-32027 Always include the wall clock time in oplog entries
Regardless of the feature compatibility version.
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index c849a450f26..ce512effa10 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -348,11 +348,8 @@ OplogDocWriter _logOpWriter(OperationContext* opCtx,
if (o2)
b.append("o2", *o2);
- if (wallTime != Date_t{} &&
- (serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36)) {
- b.appendDate("wall", wallTime);
- }
+ invariant(wallTime != Date_t{});
+ b.appendDate("wall", wallTime);
appendSessionInfo(opCtx, &b, statementId, sessionInfo, oplogLink);
return OplogDocWriter(OplogDocWriter(b.obj(), obj));