summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbcheck.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-07-15 15:13:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-15 16:37:02 +0000
commit299c4b3e46075a01ab8d0989bca5358a2b0603ae (patch)
treeb01d0e260502be4346f346d8d8d3239836a8d087 /src/mongo/db/commands/dbcheck.cpp
parenta16f7f1ee85ac854db4e92294ceb392043623fea (diff)
downloadmongo-299c4b3e46075a01ab8d0989bca5358a2b0603ae.tar.gz
SERVER-62923 Change DB lock RAII types to use DatabaseName
Diffstat (limited to 'src/mongo/db/commands/dbcheck.cpp')
-rw-r--r--src/mongo/db/commands/dbcheck.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/dbcheck.cpp b/src/mongo/db/commands/dbcheck.cpp
index 7da38954e9c..99970945e21 100644
--- a/src/mongo/db/commands/dbcheck.cpp
+++ b/src/mongo/db/commands/dbcheck.cpp
@@ -197,7 +197,8 @@ std::unique_ptr<DbCheckRun> fullDatabaseRun(OperationContext* opCtx,
uassert(
ErrorCodes::InvalidNamespace, "Cannot run dbCheck on local database", dbName != "local");
- AutoGetDb agd(opCtx, StringData(dbName), MODE_IS);
+ // TODO SERVER-63353 Change to use dbName directly
+ AutoGetDb agd(opCtx, DatabaseName(boost::none, dbName), MODE_IS);
uassert(ErrorCodes::NamespaceNotFound, "Database " + dbName + " not found", agd.getDb());
const int64_t max = std::numeric_limits<int64_t>::max();