Skip to content

Commit c5f7486

Browse files
author
Nirbhay Choubey
committed
bzr merge -r4062..4065 codership/5.6
1 parent b5871a5 commit c5f7486

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

sql/slave.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4628,6 +4628,7 @@ log '%s' at position %s, relay log '%s' position: %s%s", RPL_LOG_NAME,
46284628
}
46294629
}
46304630
#endif /* WITH_WSREP */
4631+
46314632
DBUG_LEAVE; // Must match DBUG_ENTER()
46324633
my_thread_end();
46334634
#ifdef HAVE_OPENSSL

sql/wsrep_mysqld.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ static void wsrep_init_position()
481481
}
482482
}
483483

484-
extern char* my_bind_addr_str;
485-
486484
int wsrep_init()
487485
{
488486
int rcode= -1;

sql/wsrep_utils.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ thd::~thd ()
321321
/* Returns INADDR_NONE, INADDR_ANY, INADDR_LOOPBACK or something else */
322322
unsigned int wsrep_check_ip (const char* const addr)
323323
{
324+
if (addr && 0 == strcasecmp(addr, MY_BIND_ALL_ADDRESSES)) return INADDR_ANY;
325+
324326
unsigned int ret = INADDR_NONE;
325327
struct addrinfo *res, hints;
326328

@@ -361,9 +363,6 @@ unsigned int wsrep_check_ip (const char* const addr)
361363
return ret;
362364
}
363365

364-
extern char* my_bind_addr_str;
365-
extern uint mysqld_port;
366-
367366
size_t wsrep_guess_ip (char* buf, size_t buf_len)
368367
{
369368
size_t ip_len = 0;

0 commit comments

Comments
 (0)