summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/validate_tests.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-07-11 17:40:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-11 18:57:30 +0000
commit3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1 (patch)
tree02e3b8029d4e89c24a6f3ba94840da992e55e290 /src/mongo/dbtests/validate_tests.cpp
parent735e3f711ae28979811d4dcb2d35aeba6ffa460c (diff)
downloadmongo-3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1.tar.gz
SERVER-63650 Change Locker::isDbLockedForMode to take in DatabaseName
Diffstat (limited to 'src/mongo/dbtests/validate_tests.cpp')
-rw-r--r--src/mongo/dbtests/validate_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp
index 2d93082bbb4..597f1d9e365 100644
--- a/src/mongo/dbtests/validate_tests.cpp
+++ b/src/mongo/dbtests/validate_tests.cpp
@@ -191,16 +191,16 @@ protected:
void lockDb(LockMode mode) {
_autoDb.reset();
- invariant(_opCtx.lockState()->isDbLockedForMode(_nss.db(), MODE_NONE));
+ invariant(_opCtx.lockState()->isDbLockedForMode(_nss.dbName(), MODE_NONE));
_autoDb.reset(new AutoGetDb(&_opCtx, _nss.db().toString(), mode));
- invariant(_opCtx.lockState()->isDbLockedForMode(_nss.db(), mode));
+ invariant(_opCtx.lockState()->isDbLockedForMode(_nss.dbName(), mode));
_db = _autoDb.get()->getDb();
}
void releaseDb() {
_autoDb.reset();
_db = nullptr;
- invariant(_opCtx.lockState()->isDbLockedForMode(_nss.db(), MODE_NONE));
+ invariant(_opCtx.lockState()->isDbLockedForMode(_nss.dbName(), MODE_NONE));
}
const ServiceContext::UniqueOperationContext _txnPtr = cc().makeOperationContext();