summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/drop_indexes.cpp2
-rw-r--r--src/mongo/db/commands/test_commands.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp
index e95da5c1378..9313915c9d3 100644
--- a/src/mongo/db/commands/drop_indexes.cpp
+++ b/src/mongo/db/commands/drop_indexes.cpp
@@ -177,7 +177,7 @@ public:
collection->uuid());
// This is necessary to set up CurOp and update the Top stats.
- OldClientContext ctx(opCtx, toReIndexNss.ns());
+ OldClientContext ctx(opCtx, toReIndexNss);
const auto defaultIndexVersion = IndexDescriptor::getDefaultIndexVersion();
diff --git a/src/mongo/db/commands/test_commands.cpp b/src/mongo/db/commands/test_commands.cpp
index f335d0623a1..351b7c99dc7 100644
--- a/src/mongo/db/commands/test_commands.cpp
+++ b/src/mongo/db/commands/test_commands.cpp
@@ -99,7 +99,7 @@ public:
// TODO SERVER-66561 Use DatabaseName obj passed in
DatabaseName dbName(boost::none, dbname);
Lock::DBLock lk(opCtx, dbName, MODE_X);
- OldClientContext ctx(opCtx, nss.ns());
+ OldClientContext ctx(opCtx, nss);
Database* db = ctx.db();
WriteUnitOfWork wunit(opCtx);