From: Kees Monshouwer Date: Sun, 3 Jul 2016 19:20:14 +0000 (+0200) Subject: mysql autoreconnect is a really bad idea X-Git-Tag: rec-4.0.0~18^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb8e4b04fdd6024dc930b97749be45bd83c3b97d;p=thirdparty%2Fpdns.git mysql autoreconnect is a really bad idea prepared statementes are released at reconnect --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index aac695e283..daac6ab49a 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -384,7 +384,7 @@ SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const do { #if MYSQL_VERSION_ID >= 50013 - my_bool reconnect = 1; + my_bool reconnect = 0; mysql_options(&d_db, MYSQL_OPT_RECONNECT, &reconnect); #endif