Remove intrusive_ptr reference decrement in expression context

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: