Commit 5138672
Venkatesh Duggirala
Bug#18742916 MYSQLBINLOG --RAW DOES NOT CHECK FOR ERRORS
Problem: mysqlbinlog --raw does not check for fail write errors
Analysis: We have two my_fwrite calls in mysqlbinlog.cc file
which does not check for failures. If my_fwrite returns error and
if we are not catching the error we could end up in corrupting
written out binary logs without reporting any errors/warnings.
Fix: catch my_fwrite return values in those two places
and throw error if fails.1 parent 3f36b94 commit 5138672
File tree
4 files changed
+36
-4
lines changed- client
- mysql-test
- r
- t
- mysys
4 files changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2320 | 2320 | | |
2321 | 2321 | | |
2322 | 2322 | | |
2323 | | - | |
2324 | | - | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
2325 | 2331 | | |
2326 | 2332 | | |
2327 | 2333 | | |
| |||
2344 | 2350 | | |
2345 | 2351 | | |
2346 | 2352 | | |
2347 | | - | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2348 | 2360 | | |
2349 | 2361 | | |
2350 | 2362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
972 | 977 | | |
973 | 978 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
566 | 580 | | |
567 | 581 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments