]> granicus.if.org Git - postgresql/commit
Fix bug in streaming replication over multiple tli switches.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 2 Jan 2013 12:35:15 +0000 (14:35 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 2 Jan 2013 12:35:15 +0000 (14:35 +0200)
commitd194d7a52630d855f43edbf0129e131099af6c14
tree89ece4099f524f5d25234b10aba20ea55fc3c0b4
parent4ffd589f44b8687cee1714c5c63f03487b2ae570
Fix bug in streaming replication over multiple tli switches.

After receiving some WAL over streaming replication, try to open the file
from the timeline we're currently recieving, not recoveryTargetTLI. They
are usually the same, which is why wasn't noticed before, but you'd get
an error if there have been more than one timeline switch between the
current point in WAL and the recovery target.
src/backend/access/transam/xlog.c