forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3bc519
committed
Fix off-by-one in LimitAdditionalPins()
Due to the bug LimitAdditionalPins() could return 0, violatingLimitAdditionalPins()'s API ("One additional pin is always allowed"). Thiscould be hit when setting shared_buffers very low and using a fair amount ofconcurrency.This bug was introduced in31966b1.Author: "Anton A. Melnikov" <aamelnikov@inbox.ru>Reported-by: "Anton A. Melnikov" <aamelnikov@inbox.ru>Reported-by: Victoria ShepardDiscussion:https://postgr.es/m/ae46f2fb-5586-3de0-b54b-1bb0f6410ebd@inbox.ruBackpatch: 16-1 parentd6677b9 commitf3bc519
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1767 | 1767 |
| |
1768 | 1768 |
| |
1769 | 1769 |
| |
1770 |
| - | |
| 1770 | + | |
1771 | 1771 |
| |
1772 | 1772 |
| |
1773 | 1773 |
| |
|
0 commit comments
Comments
(0)