diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2022-02-01 14:55:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-01 16:12:55 +0000 |
commit | 1cc5df724ab48604e19a8b2f3703563c553b1ba0 (patch) | |
tree | 68493e81ddd2bc3fc790dd626ad2de689fef405c /src/mongo/embedded | |
parent | b2098c676bdc64e3194734fa632b133c47496646 (diff) | |
download | mongo-1cc5df724ab48604e19a8b2f3703563c553b1ba0.tar.gz |
SERVER-62609 Represent the w parameter of WriteConcernOptions as a variant
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r-- | src/mongo/embedded/read_concern_embedded.cpp | 3 | ||||
-rw-r--r-- | src/mongo/embedded/service_entry_point_embedded.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
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())); } } |