summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.h')
-rw-r--r--src/mongo/db/commands/run_aggregate.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/commands/run_aggregate.h b/src/mongo/db/commands/run_aggregate.h
index ba73245bdbf..b61538fb93d 100644
--- a/src/mongo/db/commands/run_aggregate.h
+++ b/src/mongo/db/commands/run_aggregate.h
@@ -49,30 +49,25 @@ namespace mongo {
* 'privileges' contains the privileges that were required to run this aggregation, to be used later
* for re-checking privileges for getMore commands.
*
- * If the query over a view that's already been resolved, the resolved view and the original
- * user-provided request both must be provided.
- *
* On success, fills out 'result' with the command response.
*/
Status runAggregate(OperationContext* opCtx,
+ const NamespaceString& nss,
AggregateCommandRequest& request,
const LiteParsedPipeline& liteParsedPipeline,
const BSONObj& cmdObj,
const PrivilegeVector& privileges,
- rpc::ReplyBuilderInterface* result,
- boost::optional<const ResolvedView&> resolvedView = boost::none,
- boost::optional<const AggregateCommandRequest&> origRequest = boost::none);
+ rpc::ReplyBuilderInterface* result);
/**
* Convenience version that internally constructs the LiteParsedPipeline.
*/
Status runAggregate(OperationContext* opCtx,
+ const NamespaceString& nss,
AggregateCommandRequest& request,
const BSONObj& cmdObj,
const PrivilegeVector& privileges,
- rpc::ReplyBuilderInterface* result,
- boost::optional<const ResolvedView&> resolvedView = boost::none,
- boost::optional<const AggregateCommandRequest&> origRequest = boost::none);
+ rpc::ReplyBuilderInterface* result);
/**
* Tracks explicit use of allowDiskUse:false with find and aggregate commands.