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

PlanStage::_commonStats should be made private

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Query 2021-01-25

      PlanStage::_commonStats generally does not have to be accessed or modified by stage implementations, and thus should be made private.

      There are a couple of existing uses that would have to be addressed before this could be made possible:

      • Stages are generally responsible for setting _commonStats.isEOF.
      • MultiPlanStage::pickBestPlan(), CachedPlanStage::pickBestPlan() and SubplanStage::pickBestPlan() are responsible for updating _commonStats.executionTimeMillis.

            Assignee:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: