[SCM] Samba Shared Repository - branch master updated
Jeremy Allison
jra at samba.org
Sat Feb 15 00:27:03 MST 2014
The branch, master has been updated
via 001b958 tdb: always open internal databases with incompatible hash.
from 41b7aca tdb: in tdb_delete_hash, make lock/unlock bracket more obvious
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 001b9582ccdeea317490adef6918295d8c103b15
Author: Michael Adam <obnox at samba.org>
Date: Mon Feb 10 16:23:48 2014 +0100
tdb: always open internal databases with incompatible hash.
This makes them more efficient due to better distribution
of keys across hash chains.
Signed-off-by: Michael Adam <obnox at samba.org>
Reviewed-by: Jeremy Allison <jra at samba.org>
Autobuild-User(master): Jeremy Allison <jra at samba.org>
Autobuild-Date(master): Sat Feb 15 08:26:07 CET 2014 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
lib/tdb/common/open.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c
index 6ff37ca..0454c8b 100644
--- a/lib/tdb/common/open.c
+++ b/lib/tdb/common/open.c
@@ -188,6 +188,11 @@ _PUBLIC_ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int td
goto fail;
}
tdb_io_init(tdb);
+
+ if (tdb_flags & TDB_INTERNAL) {
+ tdb_flags |= TDB_INCOMPATIBLE_HASH;
+ }
+
tdb->fd = -1;
#ifdef TDB_TRACE
tdb->tracefd = -1;
--
Samba Shared Repository
More information about the samba-cvs
mailing list