Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8176a2ee
Commit
8176a2ee
authored
Mar 15, 2018
by
antirez
Browse files
RDB: LRU/LFU branches missed continue.
parent
1ce50a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
8176a2ee
...
@@ -1858,9 +1858,11 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi) {
...
@@ -1858,9 +1858,11 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi) {
uint8_t byte;
uint8_t byte;
if (rioRead(rdb,&byte,1) == 0) goto eoferr;
if (rioRead(rdb,&byte,1) == 0) goto eoferr;
lfu_freq = byte;
lfu_freq = byte;
continue; /* Read next opcode. */
} else if (type == RDB_OPCODE_IDLE) {
} else if (type == RDB_OPCODE_IDLE) {
/* IDLE: LRU idle time. */
/* IDLE: LRU idle time. */
if ((lru_idle = rdbLoadLen(rdb,NULL)) == RDB_LENERR) goto eoferr;
if ((lru_idle = rdbLoadLen(rdb,NULL)) == RDB_LENERR) goto eoferr;
continue; /* Read next opcode. */
} else if (type == RDB_OPCODE_EOF) {
} else if (type == RDB_OPCODE_EOF) {
/* EOF: End of file, exit the main loop. */
/* EOF: End of file, exit the main loop. */
break;
break;
...
...
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