Ftruncate fixes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • WT2.6.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None

      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.

              Assignee:
              Keith Bostic (Inactive)
              Reporter:
              Keith Bostic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: