forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb553037
committed
Fix rare sharedtuplestore.c corruption.
If the final chunk of an oversized tuple being written out to disk wasexactly 32760 bytes, it would be corrupted due to a fencepost bug.Bug #17619. Back-patch to 11 where the code arrived.While testing that (see test module in archives), I (tmunro) noticedthat the per-participant page counter was not initialized to zero as itshould have been; that wasn't a live bug when it was written since DSMmemory was originally always zeroed, but since 14min_dynamic_shared_memory might be configured and it supplies non-zeroedmemory, so that is also fixed here.Author: Dmitry Astapov <dastapov@gmail.com>Discussion:https://postgr.es/m/17619-0de62ceda812b8b5%40postgresql.org1 parent92fc127 commitb553037
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
| 163 | + | |
163 | 164 |
| |
164 | 165 |
| |
165 | 166 |
| |
| |||
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
324 |
| - | |
| 325 | + | |
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
| |||
341 | 342 |
| |
342 | 343 |
| |
343 | 344 |
| |
344 |
| - | |
| 345 | + | |
345 | 346 |
| |
346 | 347 |
| |
347 | 348 |
| |
|
0 commit comments
Comments
(0)