diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-10-05 14:18:16 +0200 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-10-05 14:18:16 +0200 |
commit | 94e6f3e4569e7159bceb216891acd1c19743b8fc (patch) | |
tree | 99dd14e2b20f63c7005203f2662843c082ba104a /config.h.cmake | |
parent | 29f9f3470ad1ae7964f9fdc619009b4f0e30dd31 (diff) | |
download | mariadb-git-94e6f3e4569e7159bceb216891acd1c19743b8fc.tar.gz |
Bug#55629 5.5.x goes into infinite loop and high cpu after
error flushing io cache
The reason for the error was incorrect return code from
my_win_write() in case of error on 64 bit Windows.
Error should be indicated by return code
(size_t)-1 == 2^64 -1, but due to cast it was
(DWORD)-1 = 2^32 -1
The caller of this function would fail to recognize the error
and continue looping.
Fix is to return correct error code (size_t)-1 in case of error
as expected by caller.
Also minimal cleanup is done : my_win_write() now uses
the same parameter checks as related functions (0 and
overflow handling for count parameter).
Diffstat (limited to 'config.h.cmake')
0 files changed, 0 insertions, 0 deletions