[SERVER-70556] numIndexesReady unnecessarily iterates through _readyIndexes vector to count Created: 13/Oct/22  Updated: 29/Oct/23  Resolved: 18/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Shin Yee Tan Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17, Execution Team 2022-10-31
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 18/Oct/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-70556 Clean up index catalog counter methods
Branch: master
https://github.com/mongodb/mongo/commit/d03513d69058626ed48812e41bf444c50655e6fa

Generated at Thu Feb 08 06:16:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.