diff options
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/dbtests.cpp | 2 | ||||
-rw-r--r-- | src/mongo/dbtests/validate_tests.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp index 631bb866b5a..3a16b947f98 100644 --- a/src/mongo/dbtests/dbtests.cpp +++ b/src/mongo/dbtests/dbtests.cpp @@ -132,7 +132,7 @@ WriteContextForTests::WriteContextForTests(OperationContext* opCtx, StringData n : _opCtx(opCtx), _nss(ns) { // Lock the database and collection _autoCreateDb.emplace(opCtx, _nss.db(), MODE_IX); - _collLock.emplace(opCtx, _nss.ns(), MODE_IX); + _collLock.emplace(opCtx, _nss, MODE_IX); const bool doShardVersionCheck = false; diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp index 9fb912f9538..2a84eef2168 100644 --- a/src/mongo/dbtests/validate_tests.cpp +++ b/src/mongo/dbtests/validate_tests.cpp @@ -86,7 +86,7 @@ protected: lockDb(MODE_IX); invariant(_opCtx.lockState()->isDbLockedForMode(_nss.db(), MODE_IX)); std::unique_ptr<Lock::CollectionLock> lock = - stdx::make_unique<Lock::CollectionLock>(&_opCtx, _nss.ns(), MODE_X); + stdx::make_unique<Lock::CollectionLock>(&_opCtx, _nss, MODE_X); invariant(_opCtx.lockState()->isCollectionLockedForMode(_nss, MODE_X)); Database* db = _autoDb.get()->getDb(); |