forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite5b7451
committed
Fix possible leak of semaphore count.
Commit4aec498 reorganized the orderof operations here so that we no longer increment the number of "extrawaits" before locking the semaphore, but it did not change thestarting value of extraWaits from 0 to -1 to compensate. In the worstcase, this could leak a semaphore count, but that seems to be unlikelyin practice.Discussion:http://postgr.es/m/CAA4eK1JyVqXiMba+-a589Rk0pyHsyKkGxeumVKjU6Y74hdrVLQ@mail.gmail.comAmit Kapila, per an off-list report by Dilip Kumar. Reviewed by me.1 parent933b466 commite5b7451
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
484 | 484 |
| |
485 | 485 |
| |
486 | 486 |
| |
487 |
| - | |
488 | 487 |
| |
489 | 488 |
| |
490 | 489 |
| |
| |||
511 | 510 |
| |
512 | 511 |
| |
513 | 512 |
| |
| 513 | + | |
| 514 | + | |
514 | 515 |
| |
515 | 516 |
| |
516 | 517 |
| |
|
0 commit comments
Comments
(0)