diff options
author | antirez <antirez@gmail.com> | 2018-03-15 16:33:18 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-03-15 16:33:18 +0100 |
commit | 8176a2ee7651dec5f80d9b6c1c59df156e797227 (patch) | |
tree | 278ba85c5644c39ccc93b325da388647049e02b3 | |
parent | 1ce50a7adf56814f29e7d4d336697ef9bbf40abb (diff) | |
download | redis-8176a2ee7651dec5f80d9b6c1c59df156e797227.tar.gz |
RDB: LRU/LFU branches missed continue.
-rw-r--r-- | src/rdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1858,9 +1858,11 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi) { uint8_t byte; if (rioRead(rdb,&byte,1) == 0) goto eoferr; lfu_freq = byte; + continue; /* Read next opcode. */ } else if (type == RDB_OPCODE_IDLE) { /* IDLE: LRU idle time. */ if ((lru_idle = rdbLoadLen(rdb,NULL)) == RDB_LENERR) goto eoferr; + continue; /* Read next opcode. */ } else if (type == RDB_OPCODE_EOF) { /* EOF: End of file, exit the main loop. */ break; |