- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit9110d81
committed
Fix rare bug in read_stream.c's split IO handling.
The internal queue of buffers could become corrupted in a rare edge casethat failed to invalidate an entry, causing a stale buffer to be"forwarded" to StartReadBuffers(). This is a simple fix for theimmediate problem.A small API change might be able to remove this and related fragilityentirely, but that will have to wait a bit.Defect in commited0b87c.Bug: 19006Backpatch-through: 18Reported-by: Alexander Lakhin <exclusion@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Michael Paquier <michael@paquier.xyz>Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>Discussion:https://postgr.es/m/19006-80fcaaf69000377e%40postgresql.org1 parent762fed9 commit9110d81
1 file changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
256 | 277 | | |
257 | 278 | | |
258 | 279 | | |
| |||
979 | 1000 | | |
980 | 1001 | | |
981 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
982 | 1016 | | |
983 | 1017 | | |
984 | 1018 | | |
| |||
0 commit comments
Comments
(0)