1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-11 08:23:49 +03:00

r23364: add LDB_FLG_NOMMAP flag

This commit is contained in:
Andrew Tridgell
2007-06-06 12:44:04 +00:00
committed by Gerald (Jerry) Carter
parent e4955c729f
commit 0c3442c68b
2 changed files with 10 additions and 0 deletions

View File

@@ -232,6 +232,11 @@ struct ldb_utf8_fns {
*/
#define LDB_FLG_RECONNECT 4
/**
Flag to tell backends not to use mmap
*/
#define LDB_FLG_NOMMAP 8
/*
structures for ldb_parse_tree handling code
*/

View File

@@ -1014,6 +1014,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 {