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

[CQF] Copy singleton element from array to avoid deletion by ValueGuard

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • QO 2023-02-20
    • 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. 

      Attachments

        Activity

          People

            hana.pearlman@mongodb.com Hana Pearlman
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: