diff options
-rw-r--r-- | src/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c index 7234142d7..9de579815 100644 --- a/src/server.c +++ b/src/server.c @@ -4556,7 +4556,7 @@ void loadDataFromDisk(void) { (float)(ustime()-start)/1000000); /* Restore the replication ID / offset from the RDB file. */ - if (server.masterhost && + if ((server.masterhost || (server.cluster_enabled && nodeIsSlave(server.cluster->myself)))&& rsi.repl_id_is_set && rsi.repl_offset != -1 && /* Note that older implementations may save a repl_stream_db |