Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4489

Store correct timestamp in cells on disk

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.0, 4.1.9
    • Component/s: None
    • Labels:

      Description

      We recently added new begin and end timestamp fields to the cells for pages (optionally). We need to review the timestamps that are being saved, and ensure the correct timestamp is being chosen in all cases.

      Timestamps can come from two different places:

      • Copied from a previous disk image cell
      • Set by an update in memory

      The start timestamp corresponds to the timestamp when the version of the value was created, or WT_TS_NONE if the value precedes all possible readers. A stop timestamp of WT_TS_MAX means all readers can see that version.

      The stop timestamp isĀ WT_TS_MAX until a new version is added, then the end timestamp becomes the start timestamp for the newer version of the value.

        Attachments

          Activity

            People

            Assignee:
            keith.bostic Keith Bostic
            Reporter:
            alexander.gorrod Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: