ExportXMLWordPrintableJSON

    • DB Integration & Observability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Overview

      The helper that records query stats at the end of a write (collectQueryStats in write_ops_exec.cpp) takes an ExpressionContext argument that is never read. It forwards it to collectQueryStatsMongod(opCtx, expCtx, key), which does not read it either. Callers that have no expression context, such as inserts and bulkWrite ops, have to pass nullptr.

      Proposed change

      • Drop the expCtx parameter from collectQueryStats and update its callers.
      • Drop it from the key-based collectQueryStatsMongod overload as well, and update the find/aggregate/count/distinct callers.

      No behavior change is expected.

            Assignee:
            Philip Miljanic
            Reporter:
            Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: