Fix bug in wasender's xlogid boundary handling, reported by Erik Rijkers.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 83cb7da7dcd11f658a7fc4aff198923bf76ff8f5
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-01-27T16:41:09Z
Releases: 9.0.0
Fix bug in wasender's xlogid boundary handling, reported by Erik Rijkers.
LogwrtRqst.Write can be set to non-existent FF log segment, we mustn't
try to send that in XLogSend().

Also fix similar bug in ReadRecord(), which I just introduced in the
ReadRecord() refactoring patch.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +7 −1
src/backend/replication/walsender.c modified +14 −4