[SERVER-38612] move explicit construction of the Collection class into catalog_impl library Created: 13/Dec/18  Updated: 29/Oct/23  Resolved: 17/Dec/18

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

Type: Improvement Priority: Minor - P4
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   

The rebuildIndexesOnCollection() function in the repair_database library still constructs the Collection class when rebuilding indexes in a collection here:

https://github.com/mongodb/mongo/blob/b4cb96852037aecfab27aa7b72a2ee586a3aa2e3/src/mongo/db/repair_database.cpp#L148

Delegating this construction call to one of the catalog interfaces such as DatabaseHolder will enable us to unshim the Collection class eventually.



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

Author:

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

Message: SERVER-38612 rebuildIndexesOnCollection() delegates Collection creation to DatabaseHolder
Branch: master
https://github.com/mongodb/mongo/commit/057452188c1a1b339458506f12447c1c752f2705

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