summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-25 06:39:41 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-25 06:39:41 +0000
commit666f8a09b2701d01e67d711eaccff599b036de9b (patch)
tree61f16722d66bf3aeac2a318c1854faec582b732a /source3/include
parent827e1897783161a2a5ba797c0ff8727bd33a6f54 (diff)
downloadsamba-666f8a09b2701d01e67d711eaccff599b036de9b.tar.gz
samba-666f8a09b2701d01e67d711eaccff599b036de9b.tar.bz2
samba-666f8a09b2701d01e67d711eaccff599b036de9b.zip
fixed the really awful performance problem with the stat cache when it
ran out of primes and used a power of two hash modulus. It ended up sticking all the entries in just a few buckets. Yuck! (This used to be commit fdc9952391027e209fbd24f7794b1c2b551b1f9f)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/hash.h b/source3/include/hash.h
index 2de7031855..80a1aaae50 100644
--- a/source3/include/hash.h
+++ b/source3/include/hash.h
@@ -22,7 +22,7 @@
#ifndef _HASH_H_
#define _HASH_H_
-#define MAX_HASH_TABLE_SIZE 32768
+#define MAX_HASH_TABLE_SIZE 16384
#define HASH_TABLE_INCREMENT 2
typedef int (*compare_function)(char *, char *);