Commit d2e06502 authored by serg@serg.mylan's avatar serg@serg.mylan

"optimization cleanup" reverted - problems on rpl_redirect test.

It happens that mysql->client_next->client_next=mysql
and mysql_close() goes into infinite loop.
Results vary from simple sigsegv (FreeBSD), to hard system lockup (Linux)
:)
parent ffb49992
...@@ -2276,6 +2276,8 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host, ...@@ -2276,6 +2276,8 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host,
else if (parent->options.db) else if (parent->options.db)
child->options.db = my_strdup(parent->options.db, MYF(0)); child->options.db = my_strdup(parent->options.db, MYF(0));
child->options.rpl_parse = child->options.rpl_probe = child->rpl_pivot = 0;
return child; return child;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment