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.
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.