diff options
author | guilhem@mysql.com <> | 2004-12-09 14:44:10 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2004-12-09 14:44:10 +0100 |
commit | 1cbc904c596d624232249ac67c83dabe21e1eacb (patch) | |
tree | eaf6f2f2b65c091f3dbda162d6f00154f6680a14 /sql/repl_failsafe.cc | |
parent | 2bf9291b0c5a1776e73a7313232ddcb5086e601b (diff) | |
download | mariadb-git-1cbc904c596d624232249ac67c83dabe21e1eacb.tar.gz |
Changing the default of libmysqlclient : it's now NO reconnection.
All our programs which use mysql_real_connect() and mysql_connect() are updated accordingly, though I have deliberately
made mysqlimport not reconnect anymore (already true for mysqldump >= 4.1.8).
All Connector devs have been warned about the change I'm doing here - which was agreed with Monty,
and fixes BUG#2555.
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index f759be59ffb..b7575f3a44e 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -709,6 +709,7 @@ int connect_to_master(THD *thd, MYSQL* mysql, MASTER_INFO* mi) if (!mysql_real_connect(mysql, mi->host, mi->user, mi->password, 0, mi->port, 0, 0)) DBUG_RETURN(1); + mysql->reconnect= 1; DBUG_RETURN(0); } |