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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution

    Description

      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

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: