summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-04-07 16:53:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-25 16:33:52 +0000
commit5ef801809526ad8a8d5732d2689391e241ddf09e (patch)
treefec685dd70d1d620621e1072349c2637e628c6cc /src/mongo/db/commands
parent33e3835fe308932345eec777f5201f7df762b428 (diff)
downloadmongo-5ef801809526ad8a8d5732d2689391e241ddf09e.tar.gz
SERVER-64608 Add tenantId to NamespaceString
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/current_op_common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands/current_op_common.cpp b/src/mongo/db/commands/current_op_common.cpp
index 6b816a79057..7e82a137c92 100644
--- a/src/mongo/db/commands/current_op_common.cpp
+++ b/src/mongo/db/commands/current_op_common.cpp
@@ -110,8 +110,9 @@ bool CurrentOpCommandBase::run(OperationContext* opCtx,
pipeline.push_back(groupBuilder.obj());
// Pipeline is complete; create an AggregateCommandRequest for $currentOp.
- AggregateCommandRequest request(NamespaceString::makeCollectionlessAggregateNSS("admin"),
- std::move(pipeline));
+ AggregateCommandRequest request(
+ NamespaceString::makeCollectionlessAggregateNSS(TenantDatabaseName(boost::none, "admin")),
+ std::move(pipeline));
// Run the pipeline and obtain a CursorResponse.
auto aggResults = uassertStatusOK(runAggregation(opCtx, request));