diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-09-10 12:36:48 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-10 17:20:46 +0000 |
commit | ce0487190cf69d200028e7f9f4bcd3cefeea805d (patch) | |
tree | 1c887296b763f8a002cfd67c7052f67154274538 /src/mongo/db/commands.h | |
parent | 93a5cd255c56e922cdfe052107b96dac6c2c31db (diff) | |
download | mongo-ce0487190cf69d200028e7f9f4bcd3cefeea805d.tar.gz |
SERVER-49858 Add Command::acceptsAnyApiVersionParameters
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 57b3ce272ca..06803dbad84 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -365,6 +365,13 @@ public: */ virtual const std::set<std::string>& deprecatedApiVersions() const; + /* + * Some commands permit any values for apiVersion, apiStrict, and apiDeprecationErrors. + */ + virtual bool acceptsAnyApiVersionParameters() const { + return false; + } + /** * Like adminOnly, but even stricter: we must either be authenticated for admin db, * or, if running without auth, on the local interface. Used for things which |