summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/counttests.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-06-27 15:38:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-27 16:42:48 +0000
commitab5428c183b85d97c8c7016de4aefa34d055adcb (patch)
tree52e8851aae3c3264949282413db5dd0ce6527dea /src/mongo/dbtests/counttests.cpp
parent4fb1e801cc10f3cb588cc1867466267fd26366bf (diff)
downloadmongo-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.cpp5
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();
{