[SERVER-38400] eliminate catalog::openCatalog() link dependency on 'repl/oplog' library Created: 04/Dec/18  Updated: 29/Oct/23  Resolved: 06/Dec/18

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

Type: Improvement Priority: Trivial - P5
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-17
Participants:

 Description   

The functions in catalog_control.cpp rely mostly on the repair_database and catalog interfaces. On reopening the local.oplog.rs collection, it needs to update the cached point in repl/oplog.cpp. This currently makes catalog_control.cpp dependent on the heavy weight library 'repl/oplog'. We can redirect this function call by adding a function to the Collection interface and having CollectionImpl call into the 'repl/oplog' library.



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

Author:

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

Message: SERVER-38400 add Collection::establishOplogCollectionForLogging() and use in openCatalog()
Branch: master
https://github.com/mongodb/mongo/commit/00b8071cfaccf4c1ff380207240064444021c070

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