forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7dc7218
committed
Don't call PageGetSpecialPointer() on page until it's been initialized.
After calling XLogInitBufferForRedo(), the page might be all-zeros if it wasnot in page cache already. btree_xlog_unlink_page initialized the pagecorrectly, but it called PageGetSpecialPointer before initializing it, whichwould lead to a corrupt page at WAL replay, if the unlinked page is not inpage cache.Backpatch to 9.4, the bug came with the rewrite of B-tree page deletion.1 parent1afc1fe commit7dc7218
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 |
| - | |
1001 | 1000 |
| |
1002 | 1001 |
| |
| 1002 | + | |
| 1003 | + | |
1003 | 1004 |
| |
1004 | 1005 |
| |
1005 | 1006 |
| |
|
0 commit comments
Comments
(0)