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

Ensure file create operations are durable

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.3.4
    • Affects Version/s: None
    • Component/s: None
    • None

      Per the Linux man page, file create is durable when fsync is done for a file descriptor open on the directory. This makes sure the new directory entry is forced to disk.

      Unplanned reboots can cause files to disappear when using ext-2. The advice on the man page is very dependent on file system behavior. WT doesn't implement the advice of the man page. FWIW neither does LevelDB.

      http://linux.die.net/man/2/fsync

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: