summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2022-02-01 14:55:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-01 16:12:55 +0000
commit1cc5df724ab48604e19a8b2f3703563c553b1ba0 (patch)
tree68493e81ddd2bc3fc790dd626ad2de689fef405c /src/mongo/embedded
parentb2098c676bdc64e3194734fa632b133c47496646 (diff)
downloadmongo-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.cpp3
-rw-r--r--src/mongo/embedded/service_entry_point_embedded.cpp2
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()));
}
}