[Xapian-tickets] [Xapian] #288: Use F_FULLFSYNC ioctl where supported
Xapian
nobody at xapian.org
Thu Aug 7 06:06:56 BST 2008
#288: Use F_FULLFSYNC ioctl where supported
---------------------------+------------------------------------------------
Reporter: richard | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Backend-Chert | Version: SVN HEAD
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
---------------------------+------------------------------------------------
I've recently noticed that, when performing an fsync, sqlite and mysql use
a special ioctl on OS X which makes an effort to ensure that the disk's
internal write buffers are flushed to the platters. Perhaps we should be
using this ioctl too.
http://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html
has some details about why this is needed.
http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/os_unix.c&v=1.195
contains the sqlite implementation; search for the "full_fsync" function.
--
Ticket URL: <http://trac.xapian.org/ticket/288>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list