summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-06-18 17:13:15 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2018-06-18 17:35:22 -0400
commita9a9e398d86591c7559ba26580a38c2d439d7835 (patch)
tree4a2c3ec6d70cd8bb9018ec863070b9fe07ca37cf
parent3c0c80db9ce4424b27224e41b4d6daea687e8623 (diff)
downloadmongo-a9a9e398d86591c7559ba26580a38c2d439d7835.tar.gz
SERVER-35663 Remove clusterTime >= operationTime invariant
(cherry picked from commit bc67f3ea909bc1c13d46aa439f44cb88cbf67374)
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 20cdedfeda0..6dfe8d50b23 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -427,7 +427,7 @@ void appendClusterAndOperationTime(OperationContext* opCtx,
auto signedTime = SignedLogicalTime(
LogicalClock::get(opCtx)->getClusterTime(), TimeProofService::TimeProof(), 0);
- invariant(signedTime.getTime() >= operationTime);
+ // TODO SERVER-35663: invariant that signedTime.getTime() >= operationTime.
rpc::LogicalTimeMetadata(signedTime).writeToMetadata(metadataBob);
operationTime.appendAsOperationTime(commandBodyFieldsBob);
@@ -449,7 +449,7 @@ void appendClusterAndOperationTime(OperationContext* opCtx,
return;
}
- invariant(signedTime.getTime() >= operationTime);
+ // TODO SERVER-35663: invariant that signedTime.getTime() >= operationTime.
rpc::LogicalTimeMetadata(signedTime).writeToMetadata(metadataBob);
operationTime.appendAsOperationTime(commandBodyFieldsBob);
}