forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1d7a6e3
committed
pg_checksums: Handle read and write returns correctly
The read() return was not checking for errors, the write() return wasnot checking for short writes.Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.com1 parent396e4af commit1d7a6e3
1 file changed
+16
-5
lines changedLines changed: 16 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
202 |
| - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 |
| |
204 | 208 |
| |
205 | 209 |
| |
| |||
222 | 226 |
| |
223 | 227 |
| |
224 | 228 |
| |
| 229 | + | |
| 230 | + | |
225 | 231 |
| |
226 | 232 |
| |
227 | 233 |
| |
| |||
233 | 239 |
| |
234 | 240 |
| |
235 | 241 |
| |
236 |
| - | |
| 242 | + | |
| 243 | + | |
237 | 244 |
| |
238 |
| - | |
239 |
| - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
240 | 251 |
| |
241 | 252 |
| |
242 | 253 |
| |
|
0 commit comments
Comments
(0)