diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-07-20 11:07:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-20 11:47:23 +0000 |
commit | 14a176dd6a3359266ac0bb79725b7cb13b7c214d (patch) | |
tree | b43751dd9508f34f15c5fc54a15d9dfd2ddc4f03 /src/mongo/s | |
parent | d587a23122d5e64a828eb182bbe3f311541d89a2 (diff) | |
download | mongo-14a176dd6a3359266ac0bb79725b7cb13b7c214d.tar.gz |
Revert "SERVER-58566 Clean up remaining OP_QUERY code" due to a wrong author info
This reverts commit 3b293a78b0e24c5497464c3979daddfa0792bb55.
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_explain_cmd.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_explain_cmd.cpp b/src/mongo/s/commands/cluster_explain_cmd.cpp index 9ee65bdbc49..287ec9902d7 100644 --- a/src/mongo/s/commands/cluster_explain_cmd.cpp +++ b/src/mongo/s/commands/cluster_explain_cmd.cpp @@ -40,6 +40,15 @@ namespace { /** * Implements the explain command on mongos. + * + * "Old-style" explains (i.e. queries which have the $explain flag set), do not run + * through this path. Such explains will be supported for backwards compatibility, + * and must succeed in multiversion clusters. + * + * "New-style" explains use the explain command. When the explain command is routed + * through mongos, it is forwarded to all relevant shards. If *any* shard does not + * support a new-style explain, then the entire explain will fail (i.e. new-style + * explains cannot be used in multiversion clusters). */ class ClusterExplainCmd final : public Command { |