forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde35a97
committed
Handle WAIT_IO_COMPLETION return from WaitForMultipleObjectsEx().
This return code is possible wherever we pass bAlertable = TRUE; itarises when Windows caused the current thread to run an "I/O completionroutine" or an "asynchronous procedure call". PostgreSQL does notprovoke either of those Windows facilities, hence this bug remaininglargely unnoticed, but other local code might do so. Due to a shortageof complaints, no back-patch for now.Per report from Shiv Shivaraju Gowda, this bug can causePGSemaphoreLock() to PANIC. The bug can also cause select() to reporttimeout expiration too early, which might confuse pgstat_init() andCheckRADIUSAuth().1 parente565ff7 commitde35a97
2 files changed
+37
-24
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
623 | 623 |
| |
624 | 624 |
| |
625 | 625 |
| |
626 |
| - | |
| 626 | + | |
| 627 | + | |
627 | 628 |
| |
628 | 629 |
| |
629 | 630 |
| |
|
Lines changed: 35 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
122 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 |
| |
124 | 126 |
| |
125 | 127 |
| |
| |||
135 | 137 |
| |
136 | 138 |
| |
137 | 139 |
| |
138 |
| - | |
| 140 | + | |
139 | 141 |
| |
140 |
| - | |
141 |
| - | |
| 142 | + | |
142 | 143 |
| |
143 |
| - | |
| 144 | + | |
144 | 145 |
| |
145 |
| - | |
| 146 | + | |
| 147 | + | |
146 | 148 |
| |
147 |
| - | |
148 |
| - | |
149 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
150 | 174 |
| |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
| 175 | + | |
162 | 176 |
| |
163 |
| - | |
164 |
| - | |
165 |
| - | |
| 177 | + | |
166 | 178 |
| |
167 | 179 |
| |
168 | 180 |
| |
|
0 commit comments
Comments
(0)