Remove unecessary msync.
authorJeremy Allison <jra@samba.org>
Fri, 5 Sep 2008 22:35:04 +0000 (15:35 -0700)
committerMichael Adam <obnox@samba.org>
Fri, 12 Sep 2008 13:16:47 +0000 (15:16 +0200)
Jeremy.
(cherry picked from commit d7eab4b20af47401d281dd672e012d4eb96e5f4a)

source/lib/tdb/common/io.c

index 4ec18de48e043cd1e764dd9053922fc257d9404c..661f76148927bd7fcbb5c664d882ac2d2f28ae27 100644 (file)
@@ -191,10 +191,6 @@ int tdb_munmap(struct tdb_context *tdb)
        if (tdb->map_ptr) {
                int ret;
 
-               ret = msync(tdb->map_ptr, tdb->map_size, MS_SYNC);
-               if (ret != 0)
-                       return ret;
-
                ret = munmap(tdb->map_ptr, tdb->map_size);
                if (ret != 0)
                        return ret;