We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462e1f5 commit 98ad37bCopy full SHA for 98ad37b
src/aof.c
@@ -1481,6 +1481,7 @@ int loadSingleAppendOnlyFile(char *filename) {
1481
/* If this is a primary, we can save the replication info
1482
* as secondary ID and offset, in order to allow replicas
1483
* to partial resynchronizations with primaries. */
1484
+ if (server.repl_backlog == NULL) createReplicationBacklog();
1485
memcpy(server.replid2, rsi.repl_id, sizeof(server.replid));
1486
server.second_replid_offset = rsi.repl_offset + 1;
1487
/* Rebase primary_repl_offset from rsi.repl_offset. */
0 commit comments