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)
commit8fd54bb55f0c23bd025d1719abcbe75c6a2ea8ac
treece8add9a0cd74eadb2e55576ed9dfa3662ce1537
parent1d85e0647e287d269b3f6b534da88f497d6f76c3
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)
source/lib/tdb/common/io.c
source/lib/tdb/common/transaction.c