Bug #10931 | Hostname cache completely broken in 4.1 | ||
---|---|---|---|
Submitted: | 27 May 2005 20:54 | Modified: | 21 Jun 2005 11:00 |
Reporter: | Jeremy Cole (Basic Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.x | OS: | Any (All) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[27 May 2005 20:54]
Jeremy Cole
[27 May 2005 22:16]
Timothy Smith
Jeremy, It looks like the code change intended to simply switch from using my_casecmp/memcmp to my_strnncoll. That is, the use of length instead of rec_keylength in 4.1 appears to be a simple typo. I will let another developer more intimate with the code make that decision, though. Thanks for the bug report. Timothy
[27 May 2005 22:21]
Timothy Smith
By the way, this change happened on April 1st, 2003, in this change set: ChangeSet 1.1504.1.7 2003/04/01 14:17:28 bar@bar.mysql.r18.ru my_strncasecmp() is not used anymore. Use my_strncoll() instead. mysys/hash.c 1.26 2003/04/01 14:17:25 bar@bar.mysql.r18.ru my_strncasecmp() is not used anymore. Use my_strncoll() instead.
[31 May 2005 19:45]
Jeremy Cole
Trivial Patch for hashcmp()
Attachment: broken_hashcmp.patch (application/octet-stream, text), 426 bytes.
[31 May 2005 19:45]
Jeremy Cole
I've attached the (trivial) patch to fix this bug.
[1 Jun 2005 18:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25474
[10 Jun 2005 4:56]
Jim Winstead
Fixed in 4.1.13 and 5.0.8.
[10 Jun 2005 19:32]
Paul DuBois
Noted in 4.1.13, 5.0.8 changelogs.