diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-02-06 16:14:23 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-02-06 16:14:23 +0100 |
commit | 8e7649867f23ef4fca5ddb6678a66e414026ef7b (patch) | |
tree | ff7649743a3bf13ea13eb80f1126a13cd756d335 /sql/wsrep_utils.cc | |
parent | f9448bcb2153aac614ecb260a4dd7f27b04f17a2 (diff) | |
parent | 7cda4bee0ef7c8a3ec85e94bc1443ceaba3a64e8 (diff) | |
download | mariadb-git-8e7649867f23ef4fca5ddb6678a66e414026ef7b.tar.gz |
Merge 10.0-galera into 10.1
Diffstat (limited to 'sql/wsrep_utils.cc')
-rw-r--r-- | sql/wsrep_utils.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/wsrep_utils.cc b/sql/wsrep_utils.cc index c4a992c751a..2c3fc0d77fd 100644 --- a/sql/wsrep_utils.cc +++ b/sql/wsrep_utils.cc @@ -325,10 +325,6 @@ thd::~thd () /* Returns INADDR_NONE, INADDR_ANY, INADDR_LOOPBACK or something else */ unsigned int wsrep_check_ip (const char* const addr) { -#if 0 - if (addr && 0 == strcasecmp(addr, MY_BIND_ALL_ADDRESSES)) return INADDR_ANY; -#endif - unsigned int ret = INADDR_NONE; struct addrinfo *res, hints; @@ -380,11 +376,12 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len) unsigned int const ip_type= wsrep_check_ip(my_bind_addr_str); if (INADDR_NONE == ip_type) { - WSREP_ERROR("Networking not configured, cannot receive state transfer."); + WSREP_ERROR("Networking not configured, cannot receive state " + "transfer."); return 0; } - if (INADDR_ANY != ip_type) {; + if (INADDR_ANY != ip_type) { strncpy (buf, my_bind_addr_str, buf_len); return strlen(buf); } |