svn commit: samba r23362 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_26/source/lib

vlendec at samba.org vlendec at samba.org
Wed Jun 6 07:46:39 GMT 2007


Author: vlendec
Date: 2007-06-06 07:46:38 +0000 (Wed, 06 Jun 2007)
New Revision: 23362

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23362

Log:
Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge
this in your tree.

Modified:
   branches/SAMBA_3_0/source/lib/util_tdb.c
   branches/SAMBA_3_0_26/source/lib/util_tdb.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_tdb.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_tdb.c	2007-06-06 01:36:15 UTC (rev 23361)
+++ branches/SAMBA_3_0/source/lib/util_tdb.c	2007-06-06 07:46:38 UTC (rev 23362)
@@ -906,6 +906,9 @@
 	struct tdb_logging_context log_ctx;
 	log_ctx.log_fn = tdb_wrap_log;
 
+	if (!lp_use_mmap())
+		tdb_flags |= TDB_NOMMAP;
+
 	for (w=tdb_list;w;w=w->next) {
 		if (strcmp(name, w->name) == 0) {
 			/*

Modified: branches/SAMBA_3_0_26/source/lib/util_tdb.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/util_tdb.c	2007-06-06 01:36:15 UTC (rev 23361)
+++ branches/SAMBA_3_0_26/source/lib/util_tdb.c	2007-06-06 07:46:38 UTC (rev 23362)
@@ -906,6 +906,9 @@
 	struct tdb_logging_context log_ctx;
 	log_ctx.log_fn = tdb_wrap_log;
 
+	if (!lp_use_mmap())
+		tdb_flags |= TDB_NOMMAP;
+
 	for (w=tdb_list;w;w=w->next) {
 		if (strcmp(name, w->name) == 0) {
 			/*



More information about the samba-cvs mailing list