[SERVER-38700] unshim Database catalog class Created: 19/Dec/18  Updated: 29/Oct/23  Resolved: 20/Dec/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.7

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

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2018-12-31
Participants:

 Description   

This is another technical debt elimination task. The lifetime of the Database class (declared in mongo/db/catalog/database.h) is managed wholly within the catalog_impl library. It should be feasible to unshim this class to remove a couple levels of indirection and provide better support for code introspection tools.



 Comments   
Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 unshim Database
Branch: master
https://github.com/mongodb/mongo/commit/fc1aa5592b8783dc802668659ec87826d789dd2f

Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 add Database::init()
Branch: master
https://github.com/mongodb/mongo/commit/e2aaa7ea82e98c32ce1af5c197c3806d9d33e4b0

Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 make Database::userCreateNS() a member function
Branch: master
https://github.com/mongodb/mongo/commit/517ca665d46043ca773f255ac7af24ea70f74726

Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 fold dropAllDatabasesExceptLocal logic into StorageInterfaceImpl::dropReplicatedDatabases

This function is used during initial sync only.
Branch: master
https://github.com/mongodb/mongo/commit/b3b24dc1aadcbc0c1b62be20377db9cf7d0d9c09

Comment by Githook User [ 19/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 convert static Database::dropDatabase to a method on DatabaseHolder
Branch: master
https://github.com/mongodb/mongo/commit/51ab5eb0c500d0013ac6265de40ab7dbc3d52131

Comment by Githook User [ 19/Dec/18 ]

Author:

{'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'}

Message: SERVER-38700 remove redundant DatabaseHolder implementation comments and header includes
Branch: master
https://github.com/mongodb/mongo/commit/7dd4db71be216b202ac05546c07329ba2727338d

Generated at Thu Feb 08 04:49:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.