forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9cd0d77
committed
Fix corruption of local buffer state during extend of temp relation
A typo has been introduced by31966b1 when updating the state of alocal buffer when a temporary relation is extended, for the case of ablock included in the relation range extended, when it is already foundin the hash table holding the local buffers. In this case, BM_VALIDshould be cleared, but the buffer state was changed so as BM_VALIDremained while clearing the other flags.As reported on the thread, it was possible to corrupt the state of thelocal buffers on ENOSPC, but the states would be corrupted on any kindof ERROR during the relation extend (like partial writes or some othererrno).Reported-by: Alexander LakhinAuthor: Tender WangReviewed-by: Richard Guo, Alexander Lakhin, Michael PaquierDiscussion:https://postgr.es/m/18259-6e256429825dd435@postgresql.orgBackpatch-through: 161 parent9391f71 commit9cd0d77
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
380 | 380 |
| |
381 | 381 |
| |
382 | 382 |
| |
383 |
| - | |
| 383 | + | |
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
| |||
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 |
| - | |
| 395 | + | |
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
|
0 commit comments
Comments
(0)