diff options
author | Jason Carey <jcarey@argv.me> | 2019-01-23 16:05:47 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2019-01-24 13:26:14 -0500 |
commit | a399c67f9656b0b03fb630e6f3c3605b5997ea6a (patch) | |
tree | eeccf706bf4865da2f94c3d6ed32414423d1a750 /src/mongo/db/commands.h | |
parent | d974c6d29971c1c6fdf25f252789db41a6cd90fe (diff) | |
download | mongo-a399c67f9656b0b03fb630e6f3c3605b5997ea6a.tar.gz |
SERVER-39148 remove CommandHelper::isGenericArg
it's not used, lets remove it
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 3d06532c17d..c6d2b96b42e 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -149,38 +149,6 @@ struct CommandHelpers { static BSONObj appendMajorityWriteConcern(const BSONObj& cmdObj); /** - * Returns true if the provided argument is one that is handled by the command processing layer - * and should generally be ignored by individual command implementations. In particular, - * commands that fail on unrecognized arguments must not fail for any of these. - */ - static bool isGenericArgument(StringData arg) { - // Not including "help" since we don't pass help requests through to the command parser. - // If that changes, it should be added. When you add to this list, consider whether you - // should also change the filterCommandRequestForPassthrough() function. - return arg == "$audit" || // - arg == "$client" || // - arg == "$configServerState" || // - arg == "$db" || // - arg == "allowImplicitCollectionCreation" || // - arg == "$oplogQueryData" || // - arg == "$queryOptions" || // - arg == "$readPreference" || // - arg == "$replData" || // - arg == "$clusterTime" || // - arg == "maxTimeMS" || // - arg == "readConcern" || // - arg == "databaseVersion" || // - arg == "shardVersion" || // - arg == "tracking_info" || // - arg == "writeConcern" || // - arg == "lsid" || // - arg == "txnNumber" || // - arg == "autocommit" || // - arg == "startTransaction" || // - false; // These comments tell clang-format to keep this line-oriented. - } - - /** * Rewrites cmdObj into a format safe to blindly forward to shards. * * This performs 2 transformations: |