[SERVER-56453] move LocalOplogInfo out of db/repl to db/catalog Created: 29/Apr/21  Updated: 29/Oct/23  Resolved: 14/May/21

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

Type: Improvement Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-40508 Move LocalOplogInfo into its own library Closed
is related to SERVER-40809 fix circular dependency between db/re... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-05-17
Participants:

 Description   

This class, introduced in SERVER-40809, has two purposes:

  • cache the CollectionPtr to the oplog collection; and
  • to help reserve optimes for timestamped writes.

It uses the ReplicationCoordinator only to retrieve the current term to populate the optimes it returns.

This class may be more relevant to correct catalog operation than any specific replica set functionality. We can make a case for moving this class from db/repl to db/catalog.



 Comments   
Comment by Githook User [ 14/May/21 ]

Author:

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

Message: SERVER-56453 fix LocalOplogInfo namespace to match new header location
Branch: master
https://github.com/mongodb/mongo/commit/3c84c163411ca70214ac7917d238b4c195717d5d

Comment by Githook User [ 14/May/21 ]

Author:

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

Message: SERVER-56453 move LocalOplogInfo header from repl/ to catalog/
Branch: master
https://github.com/mongodb/mongo/commit/51a860a7644d5c769b47d5b814feeb3dd43dcec5

Comment by Githook User [ 13/May/21 ]

Author:

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

Message: SERVER-56453 move LocalOplogInfo build target and implementation from repl/ to catalog/
Branch: master
https://github.com/mongodb/mongo/commit/9de51dbf7c5f175d419eb6613fdcb68608139661

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