diff options
author | jannaerin <golden.janna@gmail.com> | 2022-06-27 15:38:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-27 16:42:48 +0000 |
commit | ab5428c183b85d97c8c7016de4aefa34d055adcb (patch) | |
tree | 52e8851aae3c3264949282413db5dd0ce6527dea /src/mongo/dbtests/counttests.cpp | |
parent | 4fb1e801cc10f3cb588cc1867466267fd26366bf (diff) | |
download | mongo-ab5428c183b85d97c8c7016de4aefa34d055adcb.tar.gz |
SERVER-62918 Change DBLock to use DatabaseName
Diffstat (limited to 'src/mongo/dbtests/counttests.cpp')
-rw-r--r-- | src/mongo/dbtests/counttests.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/dbtests/counttests.cpp b/src/mongo/dbtests/counttests.cpp index 3cdec3af294..3ce5d0ece06 100644 --- a/src/mongo/dbtests/counttests.cpp +++ b/src/mongo/dbtests/counttests.cpp @@ -42,10 +42,7 @@ namespace CountTests { class Base { public: - Base() - : _lk(&_opCtx, nsToDatabaseSubstring(ns()), MODE_X), - _context(&_opCtx, ns()), - _client(&_opCtx) { + Base() : _lk(&_opCtx, nss().dbName(), MODE_X), _context(&_opCtx, ns()), _client(&_opCtx) { _database = _context.db(); { |