forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e41148
committed
Fix under-parenthesized XLogRecHasBlockRef() macro.
Commitf003d9f left this macro with inadequate (or, one could say,too much) parenthesization. Which was catastrophic to the correctnessof calls such as "if (!XLogRecHasBlockRef(record, 1)) ...". Thereare only a few of those, which perhaps explains why we didn't noticeimmediately (with our general weakness of WAL replay testing beinganother factor). I found it by debugging intermittent replay failureslike2021-04-08 14:33:30.191 EDT [29463] PANIC: failed to locate backup block with ID 12021-04-08 14:33:30.191 EDT [29463] CONTEXT: WAL redo at 0/95D3438 for SPGist/ADD_NODE: off 1; blkref #0: rel 1663/16384/25998, blk 11 parentdb01f79 commit9e41148
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
388 |
| - | |
389 |
| - | |
| 388 | + | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
|
0 commit comments
Comments
(0)