diff options
Diffstat (limited to 'src/mongo/db/s/cluster_find_cmd_d.cpp')
-rw-r--r-- | src/mongo/db/s/cluster_find_cmd_d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/cluster_find_cmd_d.cpp b/src/mongo/db/s/cluster_find_cmd_d.cpp index e97f07b70e7..e98315c06ad 100644 --- a/src/mongo/db/s/cluster_find_cmd_d.cpp +++ b/src/mongo/db/s/cluster_find_cmd_d.cpp @@ -61,6 +61,11 @@ struct ClusterFindCmdD { // which triggers an invariant, so only shard servers can run this. uassertStatusOK(ShardingState::get(opCtx)->canAcceptShardedCommands()); } + + static void checkCanExplainHere(OperationContext* opCtx) { + uasserted(ErrorCodes::CommandNotSupported, + "Cannot explain a cluster find command on a mongod"); + } }; ClusterFindCmdBase<ClusterFindCmdD> clusterFindCmdD; |