diff options
author | dormando <dormando@rydia.net> | 2017-08-28 13:10:15 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-08-28 13:10:15 -0700 |
commit | 225366101f59e14af0a62b8beb8d1272cb0bf2f6 (patch) | |
tree | 0a0d74077c69b6ac938227380bc0eef2a38b2d1f /assoc.c | |
parent | c5b3ecba410477fc2ada57b77aa84d53694ed5a5 (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |