diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2021-09-15 21:31:43 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-15 22:10:35 +0000 |
commit | 53f70ee33c84c1367e5b05bc51fef12ab3ad5c73 (patch) | |
tree | 0ed6a78ed7c5c2b1ea163796886fc0662365383c /src/mongo/db/index/s2_access_method.h | |
parent | f1ec9a14cf02a08047a9741b8a60633e6677cdbd (diff) | |
download | mongo-53f70ee33c84c1367e5b05bc51fef12ab3ad5c73.tar.gz |
SERVER-59305 Reject timeseries measurements with array values in indexed fields
Diffstat (limited to 'src/mongo/db/index/s2_access_method.h')
-rw-r--r-- | src/mongo/db/index/s2_access_method.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/index/s2_access_method.h b/src/mongo/db/index/s2_access_method.h index a849753ee28..7f4f595e5d8 100644 --- a/src/mongo/db/index/s2_access_method.h +++ b/src/mongo/db/index/s2_access_method.h @@ -53,6 +53,10 @@ public: static StatusWith<BSONObj> fixSpec(const BSONObj& specObj); private: + void validateDocument(const CollectionPtr& collection, + const BSONObj& obj, + const BSONObj& keyPattern) const override; + /** * Fills 'keys' with the keys that should be generated for 'obj' on this index. * |