[SERVER-51082] Move MatchExpression tree to own path strings instead of referring to input Created: 21/Sep/20  Updated: 29/Oct/23  Resolved: 29/Sep/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.8.0

Type: Task Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-10-05
Participants:

 Description   

There are many MatchExpression leaf nodes which contain a reference to a string that is owned elsewhere, with the most obvious case being any path-matching expression. This is fragile and requires awkward memory management to ensure that the original input (BSON or potentially a different concrete syntax tree) outlives the expression.



 Comments   
Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-51082 Make MatchExpression lifetime independent of CST
Branch: master
https://github.com/mongodb/mongo/commit/b0e02c5292d68f0101fc236bb2a5a4b1fbacae9b

Generated at Thu Feb 08 05:24:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.