Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50429

Move CST types to own the underlying data

    XMLWordPrintableJSON

Details

    • Query Optimization
    • Query 2020-10-05

    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.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: