[SERVER-83572] Update the lastWritten opTime for startup and primary writes Created: 27/Nov/23  Updated: 25/Jan/24  Resolved: 27/Dec/23

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

Type: Task Priority: Major - P3
Reporter: Wenbin Zhu Assignee: Jiawei Yang
Resolution: Fixed Votes: 0
Labels: PM-3489-Milestone-LastWrittenOpTime-CP
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83093 Add functions in replication coordina... Closed
is depended on by SERVER-85599 [Milestone] LastWritten OpTime Checkp... In Progress
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-12-11, Repl 2023-12-25
Participants:

 Description   

On startup: https://github.com/10gen/mongo/blob/eb548b3822e1a53224a13c7b6c96395dfb6a7afc/src/mongo/db/repl/replication_coordinator_impl.cpp#L707

Primary write: https://github.com/10gen/mongo/blob/eb548b3822e1a53224a13c7b6c96395dfb6a7afc/src/mongo/db/repl/oplog.cpp#L471



 Comments   
Comment by Githook User [ 27/Dec/23 ]

Author:

{'name': 'Jiawei Yang', 'email': 'jiawei.yang@mongodb.com', 'username': 'YoungYang0820'}

Message: SERVER-83572 Update LastWritten on startup and write path (#17460)

GitOrigin-RevId: 19a3dec6b0ff8ee6dac0ffc644f0fd773714a81d
Branch: master
https://github.com/mongodb/mongo/commit/6ab904f51550ae6978cef2241789e63ff12f1cf9

Generated at Thu Feb 08 06:52:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.