forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit87abcb4
committed
shm_mq: Fix failure to notice a dead counterparty when nowait is used.
The shm_mq mechanism was intended to optionally notice when the processon the other end of the queue fails to attach to the queue. It doesthis by allowing the user to pass a BackgroundWorkerHandle; if thebackground worker in question is launched and dies without attachingto the queue, then we know it never will. This logic works OK inblocking mode, but when called with nowait = true we fail to noticethat this has happened due to an asymmetry in the logic. Repair.Reported off-list by Rushabh Lathia. Patch by me.1 parent4f33572 commit87abcb4
1 file changed
+48
-0
lines changedLines changed: 48 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
| 145 | + | |
| 146 | + | |
145 | 147 |
| |
146 | 148 |
| |
147 | 149 |
| |
| |||
403 | 405 |
| |
404 | 406 |
| |
405 | 407 |
| |
| 408 | + | |
| 409 | + | |
406 | 410 |
| |
407 | 411 |
| |
408 | 412 |
| |
| |||
689 | 693 |
| |
690 | 694 |
| |
691 | 695 |
| |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
692 | 701 |
| |
693 | 702 |
| |
694 | 703 |
| |
| |||
842 | 851 |
| |
843 | 852 |
| |
844 | 853 |
| |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
845 | 893 |
| |
846 | 894 |
| |
847 | 895 |
| |
|
0 commit comments
Comments
(0)