r23367: check the "use mmap" option for ldb too
[sfrench/samba-autobuild/.git] / source / lib / ldb / ldb_tdb / ldb_tdb.c
index fead100f728f37dbd45b72f877e4c1dc7d8e265a..8b53982fdb351d9a52b98f6f640062845e8a5c94 100644 (file)
@@ -1029,6 +1029,11 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url,
                tdb_flags |= TDB_NOSYNC;
        }
 
+       /* and nommap option */
+       if (flags & LDB_FLG_NOMMAP) {
+               tdb_flags |= TDB_NOMMAP;
+       }
+
        if (flags & LDB_FLG_RDONLY) {
                open_flags = O_RDONLY;
        } else {