Fix bug in wasender's xlogid boundary handling, reported by Erik Rijkers.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +7 −1 |
| src/backend/replication/walsender.c | modified | +14 −4 |