forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0393f54
committed
Fix double-release of spinlock
Commit9d9b9d4 added spinlocks to protect the fields in ProcSignalflags, but in EmitProcSignalBarrier(), the spinlock was releasedtwice. With most spinlock implementations, releasing a lock that's notheld is not easy to notice, because most of the time it does nothing,but if the spinlock was concurrently acquired by another process, itcould lead to more serious issues. Fortunately, with the--disable-spinlocks emulation implementation, it caused more visiblefailures.In the passing, fix a type in comment and add an assertion that theprocNumber passed to SendProcSignal looks valid.Discussion:https://www.postgresql.org/message-id/b8ce284c-18a2-4a79-afd3-1991a2e7d246@iki.fi1 parent8bda213 commit0393f54
1 file changed
+4
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
287 | 288 |
| |
288 | 289 |
| |
289 | 290 |
| |
| |||
300 | 301 |
| |
301 | 302 |
| |
302 | 303 |
| |
303 |
| - | |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
| |||
404 | 405 |
| |
405 | 406 |
| |
406 | 407 |
| |
407 |
| - | |
| 408 | + | |
| 409 | + | |
408 | 410 |
| |
409 | 411 |
| |
410 | 412 |
| |
|
0 commit comments
Comments
(0)