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/index_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/index_access_method.h')
-rw-r--r-- | src/mongo/db/index/index_access_method.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_access_method.h b/src/mongo/db/index/index_access_method.h index 412d749836d..9ef5f340947 100644 --- a/src/mongo/db/index/index_access_method.h +++ b/src/mongo/db/index/index_access_method.h @@ -585,6 +585,14 @@ public: protected: /** + * Perform some initial validation on the document to ensure it can be indexed before calling + * the implementation-specific 'doGetKeys' method. + */ + virtual void validateDocument(const CollectionPtr& collection, + const BSONObj& obj, + const BSONObj& keyPattern) const; + + /** * Fills 'keys' with the keys that should be generated for 'obj' on this index. * * If the 'multikeyPaths' pointer is non-null, then it must point to an empty vector. If this |