diff options
author | xuesenliang <xuesenliang@tencent.com> | 2022-12-13 10:49:22 +0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-08 10:36:39 -0800 |
commit | 49d3642af0a6dd1ba8c5dfabb022955d10ebf125 (patch) | |
tree | 9ef9cc0c44efe8a9083ff65c6e12e0f857cde192 | |
parent | dddbfe9f80b9ecd73a172956ac1795c6a80d05c6 (diff) | |
download | memcached-49d3642af0a6dd1ba8c5dfabb022955d10ebf125.tar.gz |
declare item_lock_hashpower as a static variable
-rw-r--r-- | assoc.h | 1 | ||||
-rw-r--r-- | thread.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -15,4 +15,3 @@ bool assoc_iterate(void *iterp, item **it); void assoc_iterate_final(void *iterp); extern unsigned int hashpower; -extern unsigned int item_lock_hashpower; @@ -86,7 +86,7 @@ static pthread_mutex_t worker_hang_lock; static pthread_mutex_t *item_locks; /* size of the item lock hash table */ static uint32_t item_lock_count; -unsigned int item_lock_hashpower; +static unsigned int item_lock_hashpower; #define hashsize(n) ((unsigned long int)1<<(n)) #define hashmask(n) (hashsize(n)-1) |