[SERVER-74091] [CQF] Copy singleton element from array to avoid deletion by ValueGuard Created: 16/Feb/23 Updated: 29/Oct/23 Resolved: 17/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hana Pearlman | Assignee: | Hana Pearlman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | QO 2023-02-20 | ||||
| Participants: | |||||
| Linked BF Score: | 135 | ||||
| Description |
|
When lowering a Disjunction of PartialSchemaRequirement, we build an array of the equality constants from the Disjunction tree and create a single eqMember PathCompare to encompass those comparisons. If the array only has one element in it at the end of iteration, we can instead pull that element out and make a Eq PathCompare. When doing this, we should copy the single tag/val from the array so when the array ValueGuard goes out of scope they are not deleted. |
| Comments |
| Comment by Githook User [ 17/Feb/23 ] |
|
Author: {'name': 'Hana Pearlman', 'email': 'hana.pearlman@mongodb.com', 'username': 'HanaPearlman'}Message: |