forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit93745f1
committed
Fix memory leak on DSM slot exhaustion.
If we attempt to create a DSM segment when no slots are available,we should return the memory to the operating system. Previouslywe did that if the DSM_CREATE_NULL_IF_MAXSEGMENTS flag waspassed in, but we didn't do it if an error was raised. Repair.Back-patch to 9.4, where DSM segments arrived.Author: Thomas MunroReviewed-by: Robert HaasReported-by: Julian BackesDiscussion:https://postgr.es/m/CA%2BhUKGKAAoEw-R4om0d2YM4eqT1eGEi6%3DQot-3ceDR-SLiWVDw%40mail.gmail.com1 parent870ad6a commit93745f1
1 file changed
+8
-9
lines changedLines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
482 | 490 |
| |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
489 |
| - | |
490 |
| - | |
491 | 491 |
| |
492 |
| - | |
493 | 492 |
| |
494 | 493 |
| |
495 | 494 |
| |
|
0 commit comments
Comments
(0)