numIndexesReady unnecessarily iterates through _readyIndexes vector to count

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-10-17, Execution Team 2022-10-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We can probably return _returnIndexes.size() and remove passing in opCtx instead of getting the _readyIndexes iterator and counting each element of the vector. 

            Assignee:
            Shin Yee Tan
            Reporter:
            Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: