• antirez's avatar
    Seek at the end of AOF after truncate call. · 878c089e
    antirez authored
    It is not clear if files open in append only mode will automatically fix
    their offset after a truncate(2) operation. This commit makes sure that
    we reposition the AOF file descriptor offset at the end of the file
    after a truncated AOF is loaded and trimmed to the last valid command.
    878c089e
aof.c 58.5 KB