Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c68189a1
Commit
c68189a1
authored
Mar 20, 2014
by
antirez
Browse files
Specify lruclock in redisServer structure via REDIS_LRU_BITS.
The padding field was totally useless: removed.
parent
ff8c8187
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.h
View file @
c68189a1
...
@@ -575,8 +575,7 @@ struct redisServer {
...
@@ -575,8 +575,7 @@ struct redisServer {
dict
*
commands
;
/* Command table */
dict
*
commands
;
/* Command table */
dict
*
orig_commands
;
/* Command table before command renaming. */
dict
*
orig_commands
;
/* Command table before command renaming. */
aeEventLoop
*
el
;
aeEventLoop
*
el
;
unsigned
lruclock
:
22
;
/* Clock incrementing every minute, for LRU */
unsigned
lruclock
:
REDIS_LRU_BITS
;
/* Clock for LRU eviction */
unsigned
lruclock_padding
:
10
;
int
shutdown_asap
;
/* SHUTDOWN needed ASAP */
int
shutdown_asap
;
/* SHUTDOWN needed ASAP */
int
activerehashing
;
/* Incremental rehash in serverCron() */
int
activerehashing
;
/* Incremental rehash in serverCron() */
char
*
requirepass
;
/* Pass for AUTH command, or NULL */
char
*
requirepass
;
/* Pass for AUTH command, or NULL */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment