summaryrefslogtreecommitdiff
path: root/assoc.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-08-28 13:10:15 -0700
committerdormando <dormando@rydia.net>2017-08-28 13:10:15 -0700
commit225366101f59e14af0a62b8beb8d1272cb0bf2f6 (patch)
tree0a0d74077c69b6ac938227380bc0eef2a38b2d1f /assoc.c
parentc5b3ecba410477fc2ada57b77aa84d53694ed5a5 (diff)
downloadmemcached-225366101f59e14af0a62b8beb8d1272cb0bf2f6.tar.gz
fix segfault during 31b -> 32b hash table expand
The one signed int 'bucket' was added in nov 2006, and survived until today.
Diffstat (limited to 'assoc.c')
-rw-r--r--assoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assoc.c b/assoc.c
index 9d8c803..8cdf581 100644
--- a/assoc.c
+++ b/assoc.c
@@ -217,7 +217,7 @@ static void *assoc_maintenance_thread(void *arg) {
/* There is only one expansion thread, so no need to global lock. */
for (ii = 0; ii < hash_bulk_move && expanding; ++ii) {
item *it, *next;
- int bucket;
+ unsigned int bucket;
void *item_lock = NULL;
/* bucket = hv & hashmask(hashpower) =>the bucket of hash table