]> granicus.if.org Git - postgresql/commit
Fix sloppiness in the timeline switch over streaming replication patch.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Dec 2012 18:04:11 +0000 (20:04 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Dec 2012 18:08:12 +0000 (20:08 +0200)
commit1ff92eea140ccf0503b7399549031976e5c6642e
treefb9956a5d72f267690c8c5a51c2194966c8bc40a
parent36e4456d78b6a27cdaf82280b98998fc3bf3e9c7
Fix sloppiness in the timeline switch over streaming replication patch.

Here's another attempt at fixing the logic that decides how far the WAL can
be streamed, which was still broken if the timeline changed while streaming.
You would get an assertion failure. The way the logic is now written is more
readable, too.

Thom Brown reported the assertion failure.
src/backend/replication/walsender.c