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

SBE UnionStage shouldn't pass reOpen to closed child stages

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution
    • ALL

    Description

      The fix is simple.

      diff --git a/src/mongo/db/exec/sbe/stages/union.cpp b/src/mongo/db/exec/sbe/stages/union.cpp
      index a661e6c579f..c3cb11cbbe2 100644
      --- a/src/mongo/db/exec/sbe/stages/union.cpp
      +++ b/src/mongo/db/exec/sbe/stages/union.cpp
      @@ -110,7 +110,7 @@ void UnionStage::open(bool reOpen) {
           }
       
           for (auto& child : _children) {
      -        _remainingBranchesToDrain.push({child.get(), reOpen});
      +        _remainingBranchesToDrain.push({child.get(), false});
           }
       
           _remainingBranchesToDrain.front().open();

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: