forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6969dee
committed
Handle ReadFile() EOF correctly on Windows.
When ReadFile() encounters the end of a file while reading froma synchronous handle with an offset provided via OVERLAPPED, itreports an error instead of returning 0. By not handling that(undocumented) result correctly, we caused some noisy LOGmessages about an unknown error code. Repair.Back-patch to 12, where we started using pread()/ReadFile() withan offset.Reported-by: ZhenHua Cai, Amit KapilaDiagnosed-by: Juan Jose Santamaria FlechaTested-by: Amit KapilaDiscussion:https://postgr.es/m/CAA4eK1LK3%2BWRtpz68TiRdpHwxxWm%3D%2Bt1BMf-G68hhQsAQ41PZg%40mail.gmail.com1 parent80e05a0 commit6969dee
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 |
| |
45 | 48 |
| |
46 | 49 |
| |
|
0 commit comments
Comments
(0)