diff options
Diffstat (limited to 'src/mongo/db/matcher/schema/expression_internal_schema_fmod.h')
-rw-r--r-- | src/mongo/db/matcher/schema/expression_internal_schema_fmod.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/schema/expression_internal_schema_fmod.h b/src/mongo/db/matcher/schema/expression_internal_schema_fmod.h index fd16fa9e220..ae147f3a4fe 100644 --- a/src/mongo/db/matcher/schema/expression_internal_schema_fmod.h +++ b/src/mongo/db/matcher/schema/expression_internal_schema_fmod.h @@ -39,11 +39,15 @@ namespace mongo { */ class InternalSchemaFmodMatchExpression final : public LeafMatchExpression { public: - InternalSchemaFmodMatchExpression(StringData path, Decimal128 divisor, Decimal128 remainder); + InternalSchemaFmodMatchExpression(StringData path, + Decimal128 divisor, + Decimal128 remainder, + clonable_ptr<ErrorAnnotation> annotation = nullptr); std::unique_ptr<MatchExpression> shallowClone() const final { std::unique_ptr<InternalSchemaFmodMatchExpression> m = - std::make_unique<InternalSchemaFmodMatchExpression>(path(), _divisor, _remainder); + std::make_unique<InternalSchemaFmodMatchExpression>( + path(), _divisor, _remainder, _errorAnnotation); if (getTag()) { m->setTag(getTag()->clone()); } |