PSYNC2: clarify the scenario when repl_stream_db can be -1

This commit is contained in:
zhaozhao.zz
2017-11-02 10:45:33 +08:00
committed by antirez
parent be1b9ee0d5
commit 3594238350
2 changed files with 21 additions and 9 deletions

View File

@ -3540,7 +3540,8 @@ void loadDataFromDisk(void) {
rsi.repl_id_is_set &&
rsi.repl_offset != -1 &&
/* Note that older implementations may save a repl_stream_db
* of -1 inside the RDB file. */
* of -1 inside the RDB file in a wrong way, see more information
* in function rdbPopulateSaveInfo. */
rsi.repl_stream_db != -1)
{
memcpy(server.replid,rsi.repl_id,sizeof(server.replid));