[SERVER-50429] Move CST types to own the underlying data Created: 20/Aug/20 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | PM-1749-find-milestone, PM-1749-stability, qopt-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Sprint: | Query 2020-10-05 |
| Participants: |
| Description |
|
Using the BSONRegex struct to hold regex types, for example, holds the pattern by StringData which will become invalid if the original BSON goes out of scope. While not a big deal in practice, the CST should not require the original BSON to outlive it. Other types that need to change are BSONCode, BSONCodeWScope, BSONBinData, BSONDBRef, and BSONSymbol. |