[MDEV-14115] MS: Fix the aio read/write error caused by wrong useage of lpNumberOfBytesWritten Created: 2017-10-24 Updated: 2018-10-03 Resolved: 2017-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | None |
| Fix Version/s: | 10.2.10, 10.3.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | contribution, foundation | ||
| Sprint: | 10.3.3-1 |
| Description |
|
|
| Comments |
| Comment by Vladislav Vaintroub [ 2017-10-24 ] | |||
|
It would be nice to get an extended comment about what is done and why the patch was necessary.
| |||
| Comment by Vladislav Vaintroub [ 2017-10-28 ] | |||
|
Ok, I think I got the idea . I think the it could be much easier solved i.e this
can just be changed to this
since the code in this function only means to submit io, and the checks for full/partial writes are done later, after GetQueuedCompletionStatus(). Thanks for pointing out the potential bug.I changed our ReadFile()/WriteFile() calls inside Innodb to not use output length parameters, on this, and a more places here https://github.com/MariaDB/server/commit/97df230aed24dc9ba1990c955c083c2d53d1f723 | |||
| Comment by Jun Su [ 2017-11-13 ] | |||
|
Thanks. this is actual a bug we noticed in our stress. |