From 1cc5df724ab48604e19a8b2f3703563c553b1ba0 Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Tue, 1 Feb 2022 14:55:44 +0000 Subject: SERVER-62609 Represent the w parameter of WriteConcernOptions as a variant --- src/mongo/embedded/read_concern_embedded.cpp | 3 ++- src/mongo/embedded/service_entry_point_embedded.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mongo/embedded') diff --git a/src/mongo/embedded/read_concern_embedded.cpp b/src/mongo/embedded/read_concern_embedded.cpp index 708b41bc279..52bdf708c23 100644 --- a/src/mongo/embedded/read_concern_embedded.cpp +++ b/src/mongo/embedded/read_concern_embedded.cpp @@ -64,7 +64,8 @@ Status waitForSpeculativeMajorityReadConcernImpl( return Status::OK(); } -Status waitForLinearizableReadConcernImpl(OperationContext* opCtx, int readConcernTimeout) { +Status waitForLinearizableReadConcernImpl(OperationContext* opCtx, + Milliseconds readConcernTimeout) { return Status::OK(); } diff --git a/src/mongo/embedded/service_entry_point_embedded.cpp b/src/mongo/embedded/service_entry_point_embedded.cpp index 4a8a163f763..927d2e5d2de 100644 --- a/src/mongo/embedded/service_entry_point_embedded.cpp +++ b/src/mongo/embedded/service_entry_point_embedded.cpp @@ -109,7 +109,7 @@ public: void waitForLinearizableReadConcern(OperationContext* opCtx) const override { if (repl::ReadConcernArgs::get(opCtx).getLevel() == repl::ReadConcernLevel::kLinearizableReadConcern) { - uassertStatusOK(mongo::waitForLinearizableReadConcern(opCtx, 0)); + uassertStatusOK(mongo::waitForLinearizableReadConcern(opCtx, Milliseconds::zero())); } } -- cgit v1.2.1