[SERVER-85385] Create CursorStats in a MongoIntitializer Created: 18/Jan/24  Updated: 23/Jan/24  Resolved: 22/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Shreyas Kalyan Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2024-01-22
Participants:
Linked BF Score: 142

 Description   

The server status metrics for CursorStats is being initialized in thread local state, rather than before we start multi-threading. We should initialize CursorStats in a MongoInitializer.



 Comments   
Comment by Githook User [ 22/Jan/24 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-85385 Create CursorStats in a MongoIntitializer

GitOrigin-RevId: 79f1fba57c911c07ee523858bc4148c84dda638c
Branch: master
https://github.com/mongodb/mongo/commit/cc3beb6c7b4ff40362d54010cd09ccf92b8f6721

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