forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite7f7cf4
committed
1. LocalBufferSync(): set nextFreeLocalBuf to 0 - we're freeing
all local buffers @ xact commit, so accordingly nextFreeLocalBuf is first local buffer now. It helps to avoid unnecessary local buffer allocations in LocalBufferAlloc() latter ("memmory leaks" in 'order by').2. ResetLocalBufferPool() lost allocated local buffers: memset(LocalBufferDescriptors, 0, sizeof(BufferDesc) * NLocBuffer); (local buffers leak @ xact aborts).1 parent4a8c3dd commite7f7cf4
1 file changed
+7
-6
lines changedLines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
| 276 | + | |
276 | 277 |
| |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
280 | 281 |
| |
281 | 282 |
| |
282 | 283 |
| |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
| 284 | + | |
| 285 | + | |
287 | 286 |
| |
288 | 287 |
| |
289 |
| - | |
| 288 | + | |
| 289 | + | |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 | 293 |
| |
| 294 | + | |
294 | 295 |
|
0 commit comments
Comments
(0)