[SERVER-42785] lookupUUIDByNSS should be constant time Created: 12/Aug/19  Updated: 29/Oct/23  Resolved: 10/Dec/19

Status: Closed
Project: Core Server
Component/s: Catalog
Affects Version/s: 4.1.10
Fix Version/s: 4.3.3

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Daniel Ernst
Resolution: Fixed Votes: 0
Labels: groomed, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-12-16
Participants:

 Description   

While there are currently not many users of this, looking up a collection UUID by name should not take more time than looking up a Collection object by name. Currently the time is linear in the number of collections in the database while holding the catalog mutex which will cause problems if there are more users of the method.



 Comments   
Comment by Githook User [ 09/Dec/19 ]

Author:

{'email': 'daniel.ernst@mongodb.com', 'name': 'Daniel Ernst'}

Message: SERVER-42785 Make lookupUUIDByNSS constant time
Branch: master
https://github.com/mongodb/mongo/commit/e756abbdb444c8f10ab40b3735cc02ba5ce90c3c

Generated at Thu Feb 08 05:01:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.