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

Remove intrusive_ptr reference decrement in expression context

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Query 2020-05-18, Query 2020-06-01
    • 45

    Description

      During SERVER-47191 let paramater expressions are agg expressions. They are evaluated during expression context construction and stored in the variables member of ExpressionContext, but you need an expression context to evaluate an agg expression. As a temporary hack we bump the ref count to this and use this to evaluate let params. We detach the temporary intrusive_ptr in an BLOCK_ON_EXIT scope. Undo this sorcery.

      Attachments

        Activity

          People

            jacob.evans@mongodb.com Jacob Evans
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: