r373: use a much larger default tdb hash size in ldb
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Apr 2004 07:10:16 +0000 (07:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:51:35 +0000 (12:51 -0500)
(This used to be commit 54f47c45b8f828ad5ddaa630d0c1e673f2c74b7a)

source4/lib/ldb/ldb_tdb/ldb_tdb.c

index 34cff417944ba69c3db5d7c615a8857102f3e6ec..a4eb83a20e756886b2ae354b995a88832499f68c 100644 (file)
@@ -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;
        }