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

Remove intrusive_ptr reference decrement in expression context

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Query 2020-05-18, Query 2020-06-01
    • 45

      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.

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

              Created:
              Updated:
              Resolved: