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

Ftruncate fixes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Resolution: Fixed
    • None
    • WT2.6.0
    • None

    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

              keith.bostic@mongodb.com Keith Bostic (Inactive)
              keith.bostic@mongodb.com Keith Bostic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: