From 19523a841554dd16580afa3059acd58bee0ecb9e Mon Sep 17 00:00:00 2001 From: Jack Mulrow Date: Tue, 31 Jul 2018 18:36:53 -0400 Subject: SERVER-35663 Remove clusterTime >= operationTime invariant (cherry picked from commit bc67f3ea909bc1c13d46aa439f44cb88cbf67374) --- src/mongo/db/service_entry_point_mongod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp index 8d2fae719e7..8886bfb018f 100644 --- a/src/mongo/db/service_entry_point_mongod.cpp +++ b/src/mongo/db/service_entry_point_mongod.cpp @@ -387,7 +387,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); @@ -409,7 +409,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); } -- cgit v1.2.1