svn commit: samba r23364 - in branches/SAMBA_4_0/source/lib/ldb:
include ldb_tdb
tridge at samba.org
tridge at samba.org
Wed Jun 6 12:44:05 GMT 2007
Author: tridge
Date: 2007-06-06 12:44:04 +0000 (Wed, 06 Jun 2007)
New Revision: 23364
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23364
Log:
add LDB_FLG_NOMMAP flag
Modified:
branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/include/ldb.h 2007-06-06 09:27:43 UTC (rev 23363)
+++ branches/SAMBA_4_0/source/lib/ldb/include/ldb.h 2007-06-06 12:44:04 UTC (rev 23364)
@@ -232,6 +232,11 @@
*/
#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
*/
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c 2007-06-06 09:27:43 UTC (rev 23363)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c 2007-06-06 12:44:04 UTC (rev 23364)
@@ -1014,6 +1014,11 @@
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 {
More information about the samba-cvs
mailing list