summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/btree_access_method.cpp
diff options
context:
space:
mode:
authorDan Larkin-York <dan.larkin-york@mongodb.com>2021-09-15 21:31:43 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-15 22:10:35 +0000
commit53f70ee33c84c1367e5b05bc51fef12ab3ad5c73 (patch)
tree0ed6a78ed7c5c2b1ea163796886fc0662365383c /src/mongo/db/index/btree_access_method.cpp
parentf1ec9a14cf02a08047a9741b8a60633e6677cdbd (diff)
downloadmongo-53f70ee33c84c1367e5b05bc51fef12ab3ad5c73.tar.gz
SERVER-59305 Reject timeseries measurements with array values in indexed fields
Diffstat (limited to 'src/mongo/db/index/btree_access_method.cpp')
-rw-r--r--src/mongo/db/index/btree_access_method.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/index/btree_access_method.cpp b/src/mongo/db/index/btree_access_method.cpp
index c35928b7901..df3500ceb8f 100644
--- a/src/mongo/db/index/btree_access_method.cpp
+++ b/src/mongo/db/index/btree_access_method.cpp
@@ -34,6 +34,7 @@
#include "mongo/base/status.h"
#include "mongo/base/status_with.h"
#include "mongo/db/catalog/index_catalog_entry.h"
+#include "mongo/db/index/expression_keys_private.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/keypattern.h"
@@ -65,6 +66,12 @@ BtreeAccessMethod::BtreeAccessMethod(IndexCatalogEntry* btreeState,
getSortedDataInterface()->getOrdering());
}
+void BtreeAccessMethod::validateDocument(const CollectionPtr& collection,
+ const BSONObj& obj,
+ const BSONObj& keyPattern) const {
+ ExpressionKeysPrivate::validateDocumentCommon(collection, obj, keyPattern);
+}
+
void BtreeAccessMethod::doGetKeys(OperationContext* opCtx,
const CollectionPtr& collection,
SharedBufferFragmentBuilder& pooledBufferBuilder,