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

gh-837 "replica waits infinitely if the master has no xlogs"

This patch doesn't fix the bug itself, but simplifies matters
so that there is no more .inprogress xlog files.

.inprogress xlog files were created to start automatically
from a state when the server crashed with an empty
xlog, and couldn't create a new xlog since a file with the
same LSN in the name already existed. To solve this problem,
simply bump LSN at start if the last file in the recovery
list had zero records in it.

Emtpy xlog files still lead to panic if panic_on_wal_error=true
during recovery.
parent e279a5fe
No related branches found
No related tags found
Loading
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