diff options
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r-- | src/mongo/db/commands/pipeline_command.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp index 68c74a0e865..7f2586f5827 100644 --- a/src/mongo/db/commands/pipeline_command.cpp +++ b/src/mongo/db/commands/pipeline_command.cpp @@ -88,12 +88,13 @@ public: const auto aggregationRequest = uassertStatusOK(AggregationRequest::parseFromBSON(dbname, cmdObj, boost::none)); - return appendCommandStatus(result, - runAggregate(opCtx, - aggregationRequest.getNamespaceString(), - aggregationRequest, - cmdObj, - result)); + return CommandHelpers::appendCommandStatus( + result, + runAggregate(opCtx, + aggregationRequest.getNamespaceString(), + aggregationRequest, + cmdObj, + result)); } Status explain(OperationContext* opCtx, |