forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitec97db3
committed
Adjust assertion in XLogDecodeNextRecord.
As written, if you use XLogBeginRead() to position an xlogreader atthe beginning of a WAL page and then try to read WAL, this assertionwill fail. However, the header comment for XLogBeginRead() claimsthat positioning an xlogreader at the beginning of a page is valid,and the code here is perfectly able to cope with it. It's only theassertion that causes trouble. So relax it.This is formally a bug in all supported branches, but as it doesn'tseem to have any consequences for current uses of the xlogreaderfacility, no back-patch, at least for now.Dilip Kumar and Robert HaasDiscussion:http://postgr.es/m/CA+TgmoaJSs2_7WHW2GzFYe9+zfPtxBKvT3GW47+x=ptUE=cULw@mail.gmail.com1 parente6dbb48 commitec97db3
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
576 | 576 |
| |
577 | 577 |
| |
578 | 578 |
| |
579 |
| - | |
580 |
| - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
581 | 582 |
| |
582 |
| - | |
| 583 | + | |
583 | 584 |
| |
584 | 585 |
| |
585 | 586 |
| |
|
0 commit comments
Comments
(0)