facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.49k stars 712 forks source link

Fix Oracle bug 108317 (clone_os_copy_file_to_buf partial read handlin… #1242

Closed laurynas-biveinis closed 2 years ago

laurynas-biveinis commented 2 years ago

…g completely broken)

1) Pass the remaining bytes to read instead of total bytes to read_from_file. 2) Advance the read buffer pointer after a read. 3) To avoid saving and restoring these in/out arguments to the correct out values, observe that no callers are using their out values and convert them to in-only arguments.

facebook-github-bot commented 2 years ago

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.