summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-08-27 11:51:27 -0700
committerdormando <dormando@rydia.net>2017-08-27 11:51:27 -0700
commitc5b3ecba410477fc2ada57b77aa84d53694ed5a5 (patch)
treecabf0b13235aa6c8815e95705e72613952d2f18c /memcached.h
parent265d407fd817978f6e245a19eaca49a3c628fcf4 (diff)
downloadmemcached-c5b3ecba410477fc2ada57b77aa84d53694ed5a5.tar.gz
don't create hashtables larger than 32bit
most other stats related to items should be 64bit, so the totals should be ableable to go higher until we get 64bit hash tables.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 3332360..3a7d47f 100644
--- a/memcached.h
+++ b/memcached.h
@@ -64,6 +64,7 @@
/* Initial power multiplier for the hash table */
#define HASHPOWER_DEFAULT 16
+#define HASHPOWER_MAX 32
/*
* We only reposition items in the LRU queue if they haven't been repositioned