forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb6c4b58
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 parent8364510 commitb6c4b58
2 files changed
+8
-9
lines changedLines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7413 | 7413 |
| |
7414 | 7414 |
| |
7415 | 7415 |
| |
7416 |
| - | |
7417 |
| - | |
| 7416 | + | |
| 7417 | + | |
7418 | 7418 |
| |
7419 | 7419 |
| |
7420 | 7420 |
| |
7421 |
| - | |
7422 | 7421 |
| |
7423 | 7422 |
| |
7424 | 7423 |
| |
| |||
7441 | 7440 |
| |
7442 | 7441 |
| |
7443 | 7442 |
| |
7444 |
| - | |
7445 |
| - | |
7446 |
| - | |
7447 |
| - | |
7448 |
| - | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
| 7446 | + | |
| 7447 | + | |
7449 | 7448 |
| |
7450 | 7449 |
| |
7451 | 7450 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2125 | 2125 |
| |
2126 | 2126 |
| |
2127 | 2127 |
| |
2128 |
| - | |
| 2128 | + | |
2129 | 2129 |
| |
2130 | 2130 |
| |
2131 | 2131 |
| |
|
0 commit comments
Comments
(0)