forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit600387f
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 parent25dc267 commit600387f
1 file changed
+8
-9
lines changedLines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
502 | 510 |
| |
503 |
| - | |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 | 511 |
| |
512 |
| - | |
513 | 512 |
| |
514 | 513 |
| |
515 | 514 |
| |
|
0 commit comments
Comments
(0)