[SERVER-62383] Use durable_timestamp instead of commit_timestamp for set_timestamp Created: 06/Jan/22  Updated: 29/Oct/23  Resolved: 13/Jan/22

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

Type: Task Priority: Major - P3
Reporter: Fiona O'Chee (Inactive) Assignee: Fiona O'Chee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by WT-8583 Remove commit_timestamp config from ... Closed
Documented
is documented by DOCS-15035 Investigate changes in SERVER-62383: ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage - Ra 2022-01-24
Participants:
Story Points: 2

 Description   

There are several places in mongodb where set_timestamp is called with the commit_timestamp config. This is deprecated and they should be changed to durable_timestamp.

            auto commitTSConfigString = "commit_timestamp={:x}"_format(truncTs.asULL());
            invariantWTOK(conn->set_timestamp(conn, commitTSConfigString.c_str()));

        auto oldestTSConfigString =
            "force=true,oldest_timestamp={0:x},commit_timestamp={0:x}"_format(
                newOldestTimestamp.asULL());
        invariantWTOK(_conn->set_timestamp(_conn, oldestTSConfigString.c_str()));

    if (force) {
        stableTSConfigString =
            "force=true,oldest_timestamp={0:x},commit_timestamp={0:x},stable_timestamp={0:x}"_format(
                ts);
        stdx::lock_guard<Latch> lk(_highestDurableTimestampMutex);
        _highestSeenDurableTimestamp = ts;
    } else {
        stableTSConfigString = "stable_timestamp={:x}"_format(ts);
    }
    invariantWTOK(_conn->set_timestamp(_conn, stableTSConfigString.c_str()));



 Comments   
Comment by Githook User [ 13/Jan/22 ]

Author:

{'name': "Fiona O'\\''Chee", 'email': 'xfionaochee@gmail.com', 'username': 'fionaochee'}

Message: SERVER-62383 Use durable_timestamp instead of commit_timestamp
Branch: master
https://github.com/mongodb/mongo/commit/09400b1f2c9cbc9df2daf85522d0c3cdfa2f86bf

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