]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
mysql autoreconnect is a really bad idea
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 3 Jul 2016 19:20:14 +0000 (21:20 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 3 Jul 2016 19:20:14 +0000 (21:20 +0200)
prepared statementes are released at reconnect

modules/gmysqlbackend/smysql.cc

index aac695e2836c24da262cb48142617b5d4c75795f..daac6ab49aa15b223bc3b9da81c264effa739f0f 100644 (file)
@@ -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