If the AOF file is truncated such that the last entry is malformed, then readLoad() fails to load the entire file, making it impossible to recover the valid transactions other than the last still present in the file without manual intervention.
It would be preferable if either readLoad() just ignored the invalid tail of the file, or another function was provided to recover the file by making a truncated copy.
If the AOF file is truncated such that the last entry is malformed, then
readLoad()
fails to load the entire file, making it impossible to recover the valid transactions other than the last still present in the file without manual intervention.It would be preferable if either
readLoad()
just ignored the invalid tail of the file, or another function was provided to recover the file by making a truncated copy.