mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
RDB: LRU/LFU branches missed continue.
This commit is contained in:
parent
1ce50a7adf
commit
8176a2ee76
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user