diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-09-26 11:26:36 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-10-02 10:58:05 -0400 |
commit | aaa64733625433f31a5e212f4652a58816385388 (patch) | |
tree | 538d19b094a41d780b56ca1f7f065ad8cc08acf9 /src/mongo/dbtests/repltests.cpp | |
parent | e74ff7028c06686611eb4652a80a212bf14e3757 (diff) | |
download | mongo-aaa64733625433f31a5e212f4652a58816385388.tar.gz |
SERVER-37227 Reintroduce enableMajorityReadConcern:false server parameter
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r-- | src/mongo/dbtests/repltests.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp index a2d6e66b2c7..0a939bd3a44 100644 --- a/src/mongo/dbtests/repltests.cpp +++ b/src/mongo/dbtests/repltests.cpp @@ -234,6 +234,15 @@ protected: } } { + if (!serverGlobalParams.enableMajorityReadConcern) { + if (ops.size() > 0) { + if (auto tsElem = ops.front()["ts"]) { + _opCtx.getServiceContext()->getStorageEngine()->setOldestTimestamp( + tsElem.timestamp()); + } + } + } + OldClientContext ctx(&_opCtx, ns()); for (vector<BSONObj>::iterator i = ops.begin(); i != ops.end(); ++i) { if (0) { |