Skip to content
Snippets Groups Projects
Commit f766adbe authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix a regression introduced by the yesterday's cleanup.

Fix a regression introduced by the yesterday's cleanup:

recover_wal() can return 0, -1, or 1:
0 - ok, eof read
-1 - error reading wal
1 - can't read eof marker from wal.

recover_remaining_wals() looks at this, and when doing final recovery
deletes wal which don't have eof marker (return value from recover_wal()
== 1).

Yesterday I mistakenly merged 0 and 1 return values into one.
Revert this part of the yesterday's patch.

On the same token, log_io_cursor_next() can't throw an exception,
ever. Take this into account and simplify code.

recover_remaining_wals() continues to stay a mess.
parent b1a66c82
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment