Bug #91509 gethostbyaddr_r() and gethostbyname_r() are no longer used
Submitted: 30 Jun 2018 5:50 Modified: 3 Jul 2018 9:51
Reporter: Mikiya Okuno Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.5.60 OS:Any
Assigned to: CPU Architecture:Any

[30 Jun 2018 5:50] Mikiya Okuno
Description:
https://dev.mysql.com/doc/refman/5.5/en/host-cache.html

" The server performs host name resolution using the thread-safe gethostbyaddr_r() and gethostbyname_r() calls if the operating system supports them. Otherwise, the thread performing the lookup locks a mutex and calls gethostbyaddr() and gethostbyname() instead. In this case, no other thread can resolve host names not found in the host cache until the thread holding the mutex lock releases it. "

This is not true. MySQL Server uses getaddrinfo() as of MySQL 5.5 series.

How to repeat:
See the manual.

Suggested fix:
"The server performs host name resolution using the getaddrinfo() system function as of MySQL 5.5 series."
[3 Jul 2018 9:51] Paul DuBois
Posted by developer:
 
Updated as suggested.