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

Remove dead code from SBE Scan operator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Fully Compatible
    • QE 2021-11-01

      In sbe::ScanStage, there is some logic for dealing with the case where _coll is nullptr, though it appears to be the case that we always throw an exception before we reach these cases. We should remove this dead code, and similar elsewhere in the file and replace it with a MONGO_UNREACHABLE_TASSERT where appropriate.

      As part of this work we should also see if the analogous code in ix_scan.cpp is dead as well.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: