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

SBE UnionStage shouldn't pass reOpen to closed child stages

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL

      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();

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

              Created:
              Updated:
              Resolved: