summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-05-10 01:32:51 +0000
committerHerb Lewis <herb@samba.org>2000-05-10 01:32:51 +0000
commit21b85b2dba9b7e8dd7e35c91e24b46c0d78cf4d9 (patch)
tree796f7b2289d3ca2d4530a6df09132eb0f707882b
parentc88222da0ced7edf90b68e68ec49e0fe35a512fe (diff)
downloadsamba-21b85b2dba9b7e8dd7e35c91e24b46c0d78cf4d9.tar.gz
samba-21b85b2dba9b7e8dd7e35c91e24b46c0d78cf4d9.tar.bz2
samba-21b85b2dba9b7e8dd7e35c91e24b46c0d78cf4d9.zip
Use a prime for default tdb hash size - this makes a difference !
Jeremy. (This used to be commit 400906e6421c150b591b4bf978a641d5aaf8fd09)
-rw-r--r--source3/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 11bff6ce2e..6ad32437ef 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -40,7 +40,7 @@
#define TDB_FREE_MAGIC (~TDB_MAGIC)
#define TDB_ALIGN 4
#define MIN_REC_SIZE (2*sizeof(struct list_struct) + TDB_ALIGN)
-#define DEFAULT_HASH_SIZE 128
+#define DEFAULT_HASH_SIZE 131
#define TDB_PAGE_SIZE 0x2000
#define TDB_LEN_MULTIPLIER 10
#define FREELIST_TOP (sizeof(struct tdb_header))