Skip to content

Commit 49d3642

Browse files
xuesenliangdormando
authored andcommitted
declare item_lock_hashpower as a static variable
1 parent dddbfe9 commit 49d3642

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

assoc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ bool assoc_iterate(void *iterp, item **it);
1515
void assoc_iterate_final(void *iterp);
1616

1717
extern unsigned int hashpower;
18-
extern unsigned int item_lock_hashpower;

thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static pthread_mutex_t worker_hang_lock;
8686
static pthread_mutex_t *item_locks;
8787
/* size of the item lock hash table */
8888
static uint32_t item_lock_count;
89-
unsigned int item_lock_hashpower;
89+
static unsigned int item_lock_hashpower;
9090
#define hashsize(n) ((unsigned long int)1<<(n))
9191
#define hashmask(n) (hashsize(n)-1)
9292

0 commit comments

Comments
 (0)