1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

rpl_parse and rpl_probe don't have to be reset as they are already 0

This commit is contained in:
unknown
2003-11-28 20:41:33 +02:00
parent 90fc2b973a
commit 13f525c080

View File

@ -2256,8 +2256,9 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host,
const char* passwd) const char* passwd)
{ {
MYSQL* child; MYSQL* child;
DBUG_ENTER("spawn_init");
if (!(child= mysql_init(0))) if (!(child= mysql_init(0)))
return 0; DBUG_RETURN(0);
child->options.user= my_strdup((user) ? user : child->options.user= my_strdup((user) ? user :
(parent->user ? parent->user : (parent->user ? parent->user :
@ -2276,9 +2277,12 @@ 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; /*
rpl_pivot is set to 1 in mysql_init(); Reset it as we are not doing
return child; replication here
*/
child->rpl_pivot= 0;
DBUG_RETURN(child);
} }