Mark PlanStage::isEOF()/PlanExecutor::isEOF()/PlanExecutor::getKillStatus() as const

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Query Execution
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-01-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following methods should be declared const as they do not modify any state of the queried objects:

      • PlanStage::isEOF()
      • PlanExecutor::isEOF()
      • PlanExecutor::getKillStatus()

      This should not change behavior or performance in any way, but strengthens the API contracts of these methods. Callers would not expect these methods to modify the state anyway. By marking them as explicitly const, we can prevent them from unintentionally modifying state in the future.

              Assignee:
              Jan Steemann
              Reporter:
              Jan Steemann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: