summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2020-04-24 15:41:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-25 01:00:47 +0000
commite5e378e2d10eccf4eb3aeda9b621e41854c24a5c (patch)
treec954c8974f9867b792b4b3ec92328ffd907aac6d /src/mongo/db/commands/pipeline_command.cpp
parent14a9bda8a4c2a2cdd85c01a30534980d4e79a989 (diff)
downloadmongo-e5e378e2d10eccf4eb3aeda9b621e41854c24a5c.tar.gz
SERVER-47687 Remove extra aggregation request parsing in PipelineCommand
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index d068dc2812a..ebc251e65ea 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -72,7 +72,7 @@ public:
auto privileges = uassertStatusOK(
AuthorizationSession::get(opCtx->getClient())
->getPrivilegesForAggregate(
- aggregationRequest.getNamespaceString(), opMsgRequest.body, false));
+ aggregationRequest.getNamespaceString(), aggregationRequest, false));
return std::make_unique<Invocation>(
this, opMsgRequest, std::move(aggregationRequest), std::move(privileges));