"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)
:)
This commit is contained in:
unknown 2003-11-28 18:15:58 +01:00
parent 7c8f81f3e9
commit 88d274c62f

View file

@ -2276,6 +2276,8 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host,
else if (parent->options.db)
child->options.db = my_strdup(parent->options.db, MYF(0));
child->options.rpl_parse = child->options.rpl_probe = child->rpl_pivot = 0;
return child;
}