forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc623e85
committed
Reduce scope of heap vacuum per_buffer_data
Move lazy_scan_heap()'s per_buffer_data variable into a tighter scope.In lazy_scan_heap()'s phase I heap vacuuming, the read stream APIreturns a pointer to the next block number to vacuum. As long asread_stream_next_buffer() returns a valid buffer, per_buffer_data shouldalways be valid.Move per_buffer_data into a tighter scope and make sure it is reset toNULL on each iteration so that we get a core dump instead of bogus datafrom a previous block if something goes wrong in the read stream API.Suggested-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/626104.1739729538%40sss.pgh.pa.us1 parent95ef3d9 commitc623e85
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1192 | 1192 |
| |
1193 | 1193 |
| |
1194 | 1194 |
| |
1195 |
| - | |
1196 | 1195 |
| |
1197 | 1196 |
| |
1198 | 1197 |
| |
| |||
1231 | 1230 |
| |
1232 | 1231 |
| |
1233 | 1232 |
| |
| 1233 | + | |
1234 | 1234 |
| |
1235 | 1235 |
| |
1236 | 1236 |
| |
|
0 commit comments
Comments
(0)