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, 8 Sep 2008 09:03:04 +0000 (11:03 +0200)
commit7062d45182a64219e8e4769f76873bfe81fef02b
tree47ff0183a70caac8c921b59feb4d559353bf831c
parent4e780f0d41fdf4f8dda0cde13e27e7e2a31e03c3
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 bfced01a92ae1a4913c0c9aba27e7b43e06f9032)
source/lib/tdb/common/io.c
source/lib/tdb/common/transaction.c