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

Improve type safety of PlanStageKey

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization

      In SERVER-95112, we introduced PlanStageKey to represent an identifier for a PlanStage which could be used in a map. It was typedef'd to PlanStage*, but the intention was to never dereference this pointer, as this key may outlive the PlanStage itself. The compiler currently will not warn on accidently dereferencing this type.

      We can improve this by making PlanStageKey an uint64_t.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: