diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2021-06-01 15:01:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-02 17:03:51 +0000 |
commit | 12aceac83d53e4e5555d79001e0763b20e2fae3a (patch) | |
tree | 9562f3e281cd809dd782277cfb838f6e32de829c | |
parent | 8210bff0c499fb76e6c6149b21ab33df98097d7c (diff) | |
download | mongo-12aceac83d53e4e5555d79001e0763b20e2fae3a.tar.gz |
SERVER-57293 Disable lock-free reads for certain dbtests until later addressed
-rw-r--r-- | src/mongo/dbtests/clienttests.cpp | 6 | ||||
-rw-r--r-- | src/mongo/dbtests/querytests.cpp | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp index 9cb2f1592aa..5da71a03c53 100644 --- a/src/mongo/dbtests/clienttests.cpp +++ b/src/mongo/dbtests/clienttests.cpp @@ -78,6 +78,12 @@ class DropIndex : public Base { public: DropIndex() : Base("dropindex") {} void run() { + // TODO (SERVER-57194): enable lock-free reads. + bool disableLockFreeReadsOriginalValue = storageGlobalParams.disableLockFreeReads; + storageGlobalParams.disableLockFreeReads = true; + ON_BLOCK_EXIT( + [&] { storageGlobalParams.disableLockFreeReads = disableLockFreeReadsOriginalValue; }); + const ServiceContext::UniqueOperationContext opCtxPtr = cc().makeOperationContext(); OperationContext& opCtx = *opCtxPtr; DBDirectClient db(&opCtx); diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index 0159f41380a..26153a3e9dc 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -931,6 +931,12 @@ public: index(); } void run() { + // TODO (SERVER-57194): enable lock-free reads. + bool disableLockFreeReadsOriginalValue = storageGlobalParams.disableLockFreeReads; + storageGlobalParams.disableLockFreeReads = true; + ON_BLOCK_EXIT( + [&] { storageGlobalParams.disableLockFreeReads = disableLockFreeReadsOriginalValue; }); + _client.dropDatabase("unittests"); noIndex(); checkIndex(); @@ -1807,6 +1813,12 @@ public: GetIndexSpecsByUUID() : CollectionBase("GetIndexSpecsByUUID") {} void run() { + // TODO (SERVER-57194): enable lock-free reads. + bool disableLockFreeReadsOriginalValue = storageGlobalParams.disableLockFreeReads; + storageGlobalParams.disableLockFreeReads = true; + ON_BLOCK_EXIT( + [&] { storageGlobalParams.disableLockFreeReads = disableLockFreeReadsOriginalValue; }); + CollectionOptions coll_opts; coll_opts.uuid = UUID::gen(); { |