Bug #45584 | Host name cache does not work as a cache | ||
---|---|---|---|
Submitted: | 18 Jun 2009 7:53 | Modified: | 7 Mar 2010 2:15 |
Reporter: | Alexander Nozdrin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.4 | OS: | Any |
Assigned to: | Alexander Nozdrin | CPU Architecture: | Any |
[18 Jun 2009 7:53]
Alexander Nozdrin
[5 Aug 2009 17:50]
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/commits/80200 2844 Alexander Nozdrin 2009-08-05 Fix for Bug#45584 (Host name cache does not work as a cache). The problem is described in the bug report. The solution is the following: - Make hostname cache key type of (char *); - Use string representation of normalized IPv6 addresses as hostname cache keys when IPv6 is supported. Use string representation of normalized IPv4 addresses as hostname cache keys when IPv6 is not supported. - Use only the host part of client address for hostname cache keys; - Actually resolve IP addresses to hostnames, not to IP strings; - Minimal supported Windows version has been changed to Windows XP. We don't support Windows 2000 for the newer versions any more. Windows XP has IPv6 support, so declaring it minimal supported version removes much of "windows portability hassle".
[7 Aug 2009 19:53]
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/commits/80395 2848 Alexander Nozdrin 2009-08-07 Postfix for Bug#45584. The problem is that the host name cache key must be of char[HOST_ENTRY_KEY_SIZE].
[10 Aug 2009 4:18]
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/commits/80416 2850 Alexander Nozdrin 2009-08-10 Postfix for Bug#45584: - Initialize vio->remote and vio->addLen in vio_peer_addr() even when vio->localhost is set. - Postpone ip_key construction in ip_to_hostname().
[10 Aug 2009 12:32]
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/commits/80441 2852 Alexander Nozdrin 2009-08-10 Another postfix for Bug#45584: convert value to host-byte-order before comparing with the INADDR_LOOPBACK constant.
[24 Aug 2009 13:53]
Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090824135126-2rngffvth14a8bpj) (version source revid:vvaintroub@mysql.com-20090810221320-rxaj1gc1kbrbr6up) (merge vers: 5.4.4-alpha) (pib:11)
[28 Aug 2009 12:27]
Jon Stephens
Documented bugfix in the 5.4.4 and NDB-7.0.7 changelogs as follows: The hostname cache failed to work correctly.
[9 Oct 2009 23:21]
Paul DuBois
Noted in 6.0.14 changelog.
[3 Dec 2009 9:09]
Bugs System
Pushed into 5.6.0-beta (revid:alik@sun.com-20091202160026-699xnqx8c6a6t2lk) (version source revid:alik@sun.com-20091125105323-j82ts9ns936i45vv) (merge vers: 5.6.0-beta) (pib:13)
[3 Dec 2009 9:10]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20091202161413-u81nw1foglcu7nao) (version source revid:alik@sun.com-20091125105553-vvedtv1bpmugb1nj) (merge vers: 6.0.14-alpha) (pib:13)
[3 Dec 2009 20:45]
Paul DuBois
Noted in 5.6.0 changelog. Already fixed in 6.0.x.
[6 Mar 2010 10:51]
Bugs System
Pushed into 5.5.3-m3 (revid:alik@sun.com-20100306103849-hha31z2enhh7jwt3) (version source revid:wlad@sol-20091204200504-9d3d3b6ad75ijkqo) (merge vers: 5.6.0-beta) (pib:16)
[7 Mar 2010 2:15]
Paul DuBois
Moved 5.6.0 changelog entry to 5.5.3.