diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2021-03-08 08:16:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-08 15:09:15 +0000 |
commit | f842de553e3c71a410e5f49fdaec3eaaaebb04a9 (patch) | |
tree | b00bae9a367a00fbfc82968ee2583e3838d62ce9 /src/mongo/db/api_parameters.h | |
parent | 164f7ba0dee2a6d21107adb4f7af3bfb64d43177 (diff) | |
download | mongo-f842de553e3c71a410e5f49fdaec3eaaaebb04a9.tar.gz |
SERVER-53149 Finish converting getMore to IDL, try 2
Diffstat (limited to 'src/mongo/db/api_parameters.h')
-rw-r--r-- | src/mongo/db/api_parameters.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/api_parameters.h b/src/mongo/db/api_parameters.h index 34c129bca15..809cb49a902 100644 --- a/src/mongo/db/api_parameters.h +++ b/src/mongo/db/api_parameters.h @@ -48,6 +48,10 @@ public: static const OperationContext::Decoration<APIParameters> get; static APIParameters fromClient(const APIParametersFromClient& apiParamsFromClient); static APIParameters fromBSON(const BSONObj& cmdObj); + /* + * Throw if bsonObject includes any API parameters. + */ + static void uassertNoApiParameters(const BSONObj& bsonObject); // For use with unordered_map. struct Hash { |