summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-27 07:10:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:35 -0500
commit888240138203123222c5a983616b524f9325f606 (patch)
tree0437c5a882a1c409f2a48aae2a357cd724d19672 /source4
parent16d3528ebc5d82f25240700aaa3b3d67bff3049f (diff)
downloadsamba-888240138203123222c5a983616b524f9325f606.tar.gz
samba-888240138203123222c5a983616b524f9325f606.tar.bz2
samba-888240138203123222c5a983616b524f9325f606.zip
r373: use a much larger default tdb hash size in ldb
(This used to be commit 54f47c45b8f828ad5ddaa630d0c1e673f2c74b7a)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 34cff41794..a4eb83a20e 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -524,7 +524,8 @@ struct ldb_context *ltdb_connect(const char *url,
open_flags = O_CREAT | O_RDWR;
}
- tdb = tdb_open(path, 0, tdb_flags, open_flags, 0666);
+ /* note that we use quite a large default hash size */
+ tdb = tdb_open(path, 10000, tdb_flags, open_flags, 0666);
if (!tdb) {
return NULL;
}