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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.2
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • ALL
    • Quint Iteration 3.1.2
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: