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)
committerStefan Metzmacher <metze@samba.org>
Sun, 14 Sep 2008 17:19:55 +0000 (19:19 +0200)
commitb39e332bd7803dd4ce8267f750c497b5deb837ee
treecbe26fb11060805d4d724a44a256efd9dbe200e0
parent8c88209c6f4b57b0dbe1459bd5bc583c5d321758
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 74c8575b3f3b90ea21ae6aa7ccd95947838af956)
(This used to be commit 8fd54bb55f0c23bd025d1719abcbe75c6a2ea8ac)
source4/lib/tdb/common/io.c
source4/lib/tdb/common/transaction.c