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

Investigate if query stats metrics should be marked as optional in Curop

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

      Metrics in curop debug for query stats such as clusterWorkingTime, readingTime and cpuNanos (which was introduced in SERVER-98751) are all defined as boost::optional. However, these metrics are always set since all have default values. To make the code clearer we should investigate if we can just make these metrics not optional or if we can pass optional values to the consumers of these metrics (AggregatedMetrics and CursorMetrics).

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None