summaryrefslogtreecommitdiff
path: root/tests/integration/aof.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-09-16 10:32:58 +0200
committerantirez <antirez@gmail.com>2014-09-16 10:32:58 +0200
commit0ba8fe1a43a624a6e4a4e5698ac7b6616ee5a133 (patch)
tree624cbb259ba8633fe76e3de2346cf98aecdef900 /tests/integration/aof.tcl
parent046a00a03d43a6ba1db197df24be0f888a4cf196 (diff)
downloadredis-0ba8fe1a43a624a6e4a4e5698ac7b6616ee5a133.tar.gz
On AOF end of file, truncate the AOF to last valid command.
Recently we introduced the ability to load truncated AOFs, but unfortuantely the support was broken since the server, after loading the truncated AOF, continues appending to the file that is corrupted at the end. The problem is fixed only in the next AOF rewrite. This commit fixes the issue by truncating the AOF to the last valid opcode, and aborting if it is not possible to truncate the file correctly.
Diffstat (limited to 'tests/integration/aof.tcl')
0 files changed, 0 insertions, 0 deletions