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:
committed by
Gerald (Jerry) Carter
parent
e4955c729f
commit
0c3442c68b
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user