lp:~laurynas-biveinis/percona-server/bug1186690-5.1

Created by Laurynas Biveinis on 2013-06-02 and last modified on 2013-06-02
Get this branch:
bzr branch lp:~laurynas-biveinis/percona-server/bug1186690-5.1
Only Laurynas Biveinis can upload to this branch. If you are Laurynas Biveinis please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Recent revisions

549. By Laurynas Biveinis on 2013-06-02

Fix bug 1186690 (MySQL clients return bogus errno for host-not-found
errors on Ubuntu 13.04) / http://bugs.mysql.com/bug.php?id=69379.

The issue is that gethostbyname_r() started returning underdocumented
values for host-not-found errors in the libc of Ubuntu 13.04. There
are two such cases:

1) It may return -1 in *h_errno, which seems to correspond to
NETDB_INTERNAL, and there are vague suggestions that the real errno
value is then set in the global (thread-local) errno instead of
h_errno arg.

2) It may the struct hostent **result arg to NULL and still return
success (0) as its return value.

Attempt to fix by the following in my_gethostbyname_r():
1) check both result arg and return value to detemine whether the libc
call succeeded;
2) if -1 is found in h_errno, assume it to be NETDB_INTERNAL and copy
errno to h_errno.

The fix correctness is not fully proven, especially for 2), and it
also loses the fact that NETDB_INTERNAL has occurred, but this appears
to be good enough until the upstream fixes it.

545. By <email address hidden> on 2013-03-27

Merge lp:~laurynas-biveinis/percona-server/BT-16274-bug1108613-5.1

544. By <email address hidden> on 2013-03-25

Merge lp:~akopytov/percona-server/bug989253-5.1

542. By <email address hidden> on 2013-03-22

Merge lp:~stewart/percona-server/5.1.67

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:percona-server/5.6
This branch contains Public information 
Everyone can see this information.