AOF: add config option to load broken aof #3733

wants to merge 1 commit into


None yet

1 participant


When machine suffered accidentally power off, there may be some invalid bytes at the end of aof file. We can fix it with aof check with --fix option, but it increases redis server down time because broken will be detected only after almost all file has been parsed and aof check and fix also cost time. It's desirable if there is an option that makes redis auto fix it.

This patch add two option: aof-load-broken turn on and off the function and aof-load-broken-max-size controls the thresh that redis can make decision without human confirm.

zhenghuabin AOF: add config option to load broken aof
Ignore broken aof portion at end of aof file, which is usually caused by
accidentally power off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment