diff options
Diffstat (limited to 'src/mongo/db/s/cluster_pipeline_cmd_d.cpp')
-rw-r--r-- | src/mongo/db/s/cluster_pipeline_cmd_d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/cluster_pipeline_cmd_d.cpp b/src/mongo/db/s/cluster_pipeline_cmd_d.cpp index 437e7418355..1b3eed4242a 100644 --- a/src/mongo/db/s/cluster_pipeline_cmd_d.cpp +++ b/src/mongo/db/s/cluster_pipeline_cmd_d.cpp @@ -61,6 +61,11 @@ struct ClusterPipelineCommandD { uassertStatusOK(ShardingState::get(opCtx)->canAcceptShardedCommands()); } + static void checkCanExplainHere(OperationContext* opCtx) { + uasserted(ErrorCodes::CommandNotSupported, + "Cannot explain a cluster aggregate command on a mongod"); + } + static AggregateCommandRequest parseAggregationRequest( OperationContext* opCtx, const OpMsgRequest& opMsgRequest, |