- Notifications
You must be signed in to change notification settings - Fork5
Commit4b8e24b
committed
Fix a couple of bugs with wal_log_hints.
1. Replay of the WAL record for setting a bit in the visibility mapcontained an assertion that a full-page image of that record type can onlyoccur with checksums enabled. But it can also happen with wal_log_hints, soremove the assertion. Unlike checksums, wal_log_hints can be changed on thefly, so it would be complicated to figure out if it was enabled at the timethat the WAL record was generated.2. wal_log_hints has the same effect on the locking needed to read the LSNof a page as data checksums. BufferGetLSNAtomic() didn't get the memo.Backpatch to 9.4, where wal_log_hints was added.1 parentf7bb7f0 commit4b8e24b
2 files changed
+9
-8
lines changedLines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7479 | 7479 |
| |
7480 | 7480 |
| |
7481 | 7481 |
| |
7482 |
| - | |
7483 |
| - | |
7484 |
| - | |
7485 |
| - | |
| 7482 | + | |
| 7483 | + | |
| 7484 | + | |
| 7485 | + | |
| 7486 | + | |
7486 | 7487 |
| |
7487 | 7488 |
| |
7488 | 7489 |
| |
| |||
7497 | 7498 |
| |
7498 | 7499 |
| |
7499 | 7500 |
| |
7500 |
| - | |
7501 |
| - | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
7502 | 7504 |
| |
7503 |
| - | |
7504 | 7505 |
| |
7505 | 7506 |
| |
7506 | 7507 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2496 | 2496 |
| |
2497 | 2497 |
| |
2498 | 2498 |
| |
2499 |
| - | |
| 2499 | + | |
2500 | 2500 |
| |
2501 | 2501 |
| |
2502 | 2502 |
| |
|
0 commit comments
Comments
(0)