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

Add class invariant that collection exists to MultiPlanStage/SubplanStage/CachedPlanStage

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.2
    • None
    • Querying
    • Fully Compatible
    • ALL
    • Quint Iteration 3.1.2

    Description

      MultiPlanStage/SubplanStage/CachedPlanStage are collection-aware stages (they interact with the plan cache, among other things), and they are never used with a non-existent collection. It would simplify the logic in these stages to be able to assume that the collection exists. invariant(collection) should be added to the constructor for these stages, and the header files should be updated as such.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: