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

CollectionQueryInfo::notifyOfQuery doesn't use any state from CollectionQueryInfo

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

      CollectionQueryInfo::notifyOfQuery is a non-static member function of CollectionQueryInfo, but it doesn't use any state from that class. It actually just gets an instance of CollectionIndexUsageTrackerDecoration from one of the parameters that was passed in, and calls a few member functions on it. It seems like there could instead just be a function CollectionIndexUsageTrackerDecoration::notifyOfQuery, or a free function somewhere notifyCollectionIndexUsageTrackerOfQuery - unless there's some reason this has to be on the CollectionQueryInfo

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: