The msync manpage reports that msync *must* be called before munmap. Failure to do...
authorSimo Sorce <idra@samba.org>
Wed, 3 Sep 2008 14:44:09 +0000 (10:44 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:49 +0000 (10:11 +0100)
commit04e5401313c2bca6cb60656f975cac9eae03fc3c
tree6b3b0106dce22ac5f52c5f60192f6bcb43cb23d0
parentcc3e075db52624d5343bba9d1c12669e4ce8902e
The msync manpage reports that msync *must* be called before munmap. Failure to do so may result in lost data. Fix an ifdef check, I really think we meant to check HAVE_MMAP here.
(cherry picked from commit 0b39c04fed2720aad07544c65a57b6580ae322a0)
source/tdb/common/io.c
source/tdb/common/transaction.c