[SERVER-64170] Refactor TicketHolders to not use globals Created: 03/Mar/22  Updated: 30/Oct/23  Resolved: 16/Mar/22

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

Type: Improvement Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
Related
related to SERVER-64467 Remove global service context for tic... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-03-21
Participants:

 Description   

Currently ticketholders.h is maintained as a struct with global variables. Instead it should more accurately be a decoration of ServiceContext.

There's an example of how to deal with on_update IDL interactions and global variables, so we should be able to refactor this into not having global static variables.



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

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-64170 Move ticket holders from LockManager to TicketHolders
Branch: master
https://github.com/mongodb/mongo/commit/25122c60597d66c1901502c1fd1c203392d4963e

Comment by Githook User [ 16/Mar/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-64170 Refactor static variables into decorations
Branch: master
https://github.com/mongodb/mongo/commit/8f472181ea556fc01a1de53ab960e7b5d610b74b

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