summaryrefslogtreecommitdiff
path: root/src/mongo/db/api_parameters.h
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2021-03-09 21:55:47 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-10 03:36:47 +0000
commit6d3784d698fda0ccdfdff894124dc261381e3945 (patch)
treeb10cd88404b34b3aa81f5058563c8e827a296abe /src/mongo/db/api_parameters.h
parentf12e33e8bcc2de31d9018383c5a80400432e156a (diff)
downloadmongo-6d3784d698fda0ccdfdff894124dc261381e3945.tar.gz
SERVER-53149 Finish converting getMore to IDL, try 3
Diffstat (limited to 'src/mongo/db/api_parameters.h')
-rw-r--r--src/mongo/db/api_parameters.h4
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 {