forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit42d7074
committed
shm_mq: Fix detach race condition.
Commit34db06e adopted a lock-freedesign for shm_mq.c, but it introduced a race condition that couldlose messages. When shm_mq_receive_bytes() detects that the other endhas detached, it must make sure that it has seen the final version ofmq_bytes_written, or it might miss a message sent before detaching.Thomas MunroDiscussion:https://postgr.es/m/CAEepm%3D2myZ4qxpt1a%3DC%2BwEv3o188K13K3UvD-44FK0SdAzHy%2Bw%40mail.gmail.com1 parent2f3e234 commit42d7074
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1061 | 1072 |
| |
| 1073 | + | |
1062 | 1074 |
| |
1063 | 1075 |
| |
1064 | 1076 |
| |
|
0 commit comments
Comments
(0)