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

Fix mistyped QueryPlannerAccess invariant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.5
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 2017-03-27

      Description

      There is a mistyped invariant here:

      https://github.com/mongodb/mongo/blob/r3.5.4/src/mongo/db/query/planner_access.cpp#L1218

      It currently reads

      invariant(MatchExpression::ELEM_MATCH_OBJECT);
      

      However, this will always pass, since the ELEM_MATCH_OBJECT enum value is non-zero. Instead, this check is supposed to verify that the MatchExpression node is of type ELEM_MATCH_OBJECT.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.storch David Storch
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: