summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-11-28 18:15:58 +0100
committerunknown <serg@serg.mylan>2003-11-28 18:15:58 +0100
commit88d274c62f4318a92e762f4efcfa4024a8f49916 (patch)
treeeb155b114960b0e44e51bc4e6904b85eb80147a2 /libmysql
parent7c8f81f3e922d82e3d3d70dbdc66b41429478c60 (diff)
downloadmariadb-git-88d274c62f4318a92e762f4efcfa4024a8f49916.tar.gz
"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) :)
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 0c9c68f4505..763288a5e83 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -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;
}