summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authorHarin Vadodaria <harin.vadodaria@oracle.com>2012-06-19 12:56:40 +0530
committerHarin Vadodaria <harin.vadodaria@oracle.com>2012-06-19 12:56:40 +0530
commit61e428eb846e820ba0764932d1604859e53abe52 (patch)
treeecabdc9474dff08bf2fb57d0981d4278511606bb /sql/hostname.cc
parentbc42eaf95283f66788a70acbed1d7368c784a9a1 (diff)
downloadmariadb-git-61e428eb846e820ba0764932d1604859e53abe52.tar.gz
Bug#11753779: MAX_CONNECT_ERRORS WORKS ONLY WHEN 1ST
INC_HOST_ERRORS() IS CALLED. Description: Reverting patch 3755 for bug#11753779
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 38316a8ee19..9796755e9fb 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -214,15 +214,6 @@ char * ip_to_hostname(struct in_addr *in, uint *errors)
}
my_gethostbyname_r_free();
#else
-
- DBUG_EXECUTE_IF("addr_fake_ipv4",
- {
- const char* fake_host= "santa.claus.ipv4.example.com";
- name=my_strdup(fake_host, MYF(0));
- add_hostname(in,name);
- DBUG_RETURN(name);
- };);
-
VOID(pthread_mutex_lock(&LOCK_hostname));
if (!(hp=gethostbyaddr((char*) in,sizeof(*in), AF_INET)))
{