diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-04-24 15:41:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-25 01:00:47 +0000 |
commit | e5e378e2d10eccf4eb3aeda9b621e41854c24a5c (patch) | |
tree | c954c8974f9867b792b4b3ec92328ffd907aac6d /src/mongo/db/commands | |
parent | 14a9bda8a4c2a2cdd85c01a30534980d4e79a989 (diff) | |
download | mongo-e5e378e2d10eccf4eb3aeda9b621e41854c24a5c.tar.gz |
SERVER-47687 Remove extra aggregation request parsing in PipelineCommand
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/pipeline_command.cpp | 2 |
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)); |