summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_mock.h
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2021-06-03 16:37:49 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-10 19:53:16 +0000
commit9e83424b5a6f343b7b244088d1cc687ef7e1d6a8 (patch)
treeaea358ee1ed39c3f0b855db55b683a8e6010f96c /src/mongo/db/catalog/collection_mock.h
parent7e352fc7ba520406477d23545eb4005523502d2e (diff)
downloadmongo-9e83424b5a6f343b7b244088d1cc687ef7e1d6a8.tar.gz
SERVER-53635 The validate command reports documents not adhering to collection schema rules
(cherry picked from commit 898d47a64a9b98e018308bbcc2329b65702d9b3f)
Diffstat (limited to 'src/mongo/db/catalog/collection_mock.h')
-rw-r--r--src/mongo/db/catalog/collection_mock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_mock.h b/src/mongo/db/catalog/collection_mock.h
index 813abb5bc31..8ca6290fd1f 100644
--- a/src/mongo/db/catalog/collection_mock.h
+++ b/src/mongo/db/catalog/collection_mock.h
@@ -96,6 +96,10 @@ public:
std::abort();
}
+ Status checkValidation(OperationContext* opCtx, const BSONObj& document) const {
+ std::abort();
+ }
+
bool requiresIdIndex() const {
std::abort();
}