summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/restart_catalog_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/restart_catalog_command.cpp')
-rw-r--r--src/mongo/db/commands/restart_catalog_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/restart_catalog_command.cpp b/src/mongo/db/commands/restart_catalog_command.cpp
index a3aefcd3168..f840f7954bc 100644
--- a/src/mongo/db/commands/restart_catalog_command.cpp
+++ b/src/mongo/db/commands/restart_catalog_command.cpp
@@ -95,7 +95,7 @@ public:
std::vector<std::string> allDbs;
getGlobalServiceContext()->getGlobalStorageEngine()->listDatabases(&allDbs);
for (auto&& dbName : allDbs) {
- const auto db = dbHolder().get(opCtx, dbName);
+ const auto db = DatabaseHolder::getDatabaseHolder().get(opCtx, dbName);
if (db->isDropPending(opCtx)) {
return CommandHelpers::appendCommandStatus(
result,