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

Trial metrics should use boost::optional instead of 0 to indicate metric is not tracked

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

      We set maxMetrics to 0 to indicate a metric is not tracked in TrialRunTracker. This is bug-prone, and has led to issues such as SERVER-79088. There's no reason to use 0 instead of boost::none, so let's change this to avoid future bugs.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: