summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2003-11-28 20:44:26 +0200
committerunknown <monty@mysql.com>2003-11-28 20:44:26 +0200
commitf29f1024365c283f8b060267f9edab8cfc34c06c (patch)
treeec2c7ed540e4fa7b739ecaa8d0cea4e0a5165cfa /libmysql
parent69a9941cf83a8d720c3d1d1217f071901e35a42b (diff)
parentcf4099d88f1db88aacf3d170e32e0408241bcd2b (diff)
downloadmariadb-git-f29f1024365c283f8b060267f9edab8cfc34c06c.tar.gz
Merge mysql.com:/my/mysql-4.0 into mysql.com:/my/mysql-4.1
libmysql/libmysql.c: Auto merged
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c40
1 files changed, 23 insertions, 17 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 38da68791e6..a4b300a0448 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -807,27 +807,33 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host,
const char* passwd)
{
MYSQL* child;
- if (!(child = mysql_init(0)))
- return 0;
+ DBUG_ENTER("spawn_init");
+ if (!(child= mysql_init(0)))
+ DBUG_RETURN(0);
- child->options.user = my_strdup((user) ? user :
- (parent->user ? parent->user :
- parent->options.user), MYF(0));
- child->options.password = my_strdup((passwd) ? passwd :
- (parent->passwd ?
- parent->passwd :
- parent->options.password), MYF(0));
- child->options.port = port;
- child->options.host = my_strdup((host) ? host :
- (parent->host ?
- parent->host :
- parent->options.host), MYF(0));
+ child->options.user= my_strdup((user) ? user :
+ (parent->user ? parent->user :
+ parent->options.user), MYF(0));
+ child->options.password= my_strdup((passwd) ? passwd :
+ (parent->passwd ?
+ parent->passwd :
+ parent->options.password), MYF(0));
+ child->options.port= port;
+ child->options.host= my_strdup((host) ? host :
+ (parent->host ?
+ parent->host :
+ parent->options.host), MYF(0));
if (parent->db)
- child->options.db = my_strdup(parent->db, MYF(0));
+ child->options.db= my_strdup(parent->db, MYF(0));
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));
- return child;
+ /*
+ rpl_pivot is set to 1 in mysql_init(); Reset it as we are not doing
+ replication here
+ */
+ child->rpl_pivot= 0;
+ DBUG_RETURN(child);
}