diff options
Diffstat (limited to 'src/mongo/db/matcher/schema/expression_internal_schema_min_items.h')
-rw-r--r-- | src/mongo/db/matcher/schema/expression_internal_schema_min_items.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/schema/expression_internal_schema_min_items.h b/src/mongo/db/matcher/schema/expression_internal_schema_min_items.h index 50d4768458b..c4f317e1b95 100644 --- a/src/mongo/db/matcher/schema/expression_internal_schema_min_items.h +++ b/src/mongo/db/matcher/schema/expression_internal_schema_min_items.h @@ -55,7 +55,8 @@ public: std::unique_ptr<MatchExpression> shallowClone() const final { std::unique_ptr<InternalSchemaMinItemsMatchExpression> minItems = - std::make_unique<InternalSchemaMinItemsMatchExpression>(path(), numItems()); + std::make_unique<InternalSchemaMinItemsMatchExpression>( + path(), numItems(), _errorAnnotation); if (getTag()) { minItems->setTag(getTag()->clone()); } |