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

Add a log record when starting a checkpoint

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.11, WT3.0.0
    • Labels:
    • Sprint:
      Storage 2017-07-31

      Description

      The checkpoint LSN should be after all committed updates.

      The test in WT-3434 demonstrates that checkpoints are saving the LSN of the last log record written before the checkpoint started. That means recovery will roll forward that log record, leading to unnecessary work (not just applying the update, but recovery will itself take a new checkpoint).

      If checkpoints write a log record when they start, they can use an LSN that is always greater than any previous commits and avoid this issue. I think we didn't do this originally because we didn't want to write to the log when all trees were clean, but we now track that directly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sue.loverso Sue LoVerso
                Reporter:
                michael.cahill Michael Cahill
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: