-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
Query Execution 2021-02-22
This was discovered under SERVER-51617, where the evaluation of a document validator for each insert/update command uses the ExpressionContext created at parse time of the validator. Currently, the validation is performed under a const context since access to the Collection object needs to be thread safe. This means that we can't just expose a 'reattachToOperationContext' sort of method, but may need to funnel through an OperationContext/ExpressionContext/APIParameters to the MatchExpression::matches and Expression::evaluate methods.