diff options
author | Geert Bosch <geert@mongodb.com> | 2019-04-12 13:27:54 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2019-04-15 11:24:05 -0400 |
commit | 688948927bedd25c4c5c50bc7e6a253feeec4e25 (patch) | |
tree | c1beee18d1d6acf197455542a0328f0190f8dc70 /src/mongo/db/catalog/collection_test.cpp | |
parent | 03171bed9efdf0d25054fcddd936ad04db53f4aa (diff) | |
download | mongo-688948927bedd25c4c5c50bc7e6a253feeec4e25.tar.gz |
SERVER-40604 Make CollectionLock interruptible
Diffstat (limited to 'src/mongo/db/catalog/collection_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_test.cpp b/src/mongo/db/catalog/collection_test.cpp index c847faea2db..1259e3105f6 100644 --- a/src/mongo/db/catalog/collection_test.cpp +++ b/src/mongo/db/catalog/collection_test.cpp @@ -67,8 +67,7 @@ void CollectionTest::makeUncapped(NamespaceString nss) { void CollectionTest::checkValidate( Collection* coll, bool valid, int records, int invalid, int errors) { auto opCtx = operationContext(); - auto collLock = - std::make_unique<Lock::CollectionLock>(opCtx->lockState(), coll->ns().ns(), MODE_X); + auto collLock = std::make_unique<Lock::CollectionLock>(opCtx, coll->ns().ns(), MODE_X); for (auto level : levels) { ValidateResults results; |