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

Ftruncate fixes

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.6.0
    • Component/s: None
    • Labels:

      Description

      Two fixes when using ftruncate as the file-extension call:

      • The ftruncate call can't set WT_FH.size, otherwise we'll skip those blocks when allocating blocks from the file,
      • The file size has to be read inside of the lock being used to avoid races with writers.

      Reference WT-1871.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                keith.bostic Keith Bostic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: