]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0 13245/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 12 Sep 2023 15:09:57 +0000 (17:09 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 12 Sep 2023 18:03:50 +0000 (20:03 +0200)
Setting this option, even to 0, causes spurious warnings to the console
with recent libmysqlclient versions. The upstream bug
( https://bugs.mysql.com/bug.php?id=112089 )
has now been open for a month, so we're implementing a workaround.

0 was the default since at least MySQL 5.7, perhaps longer.

closes #13242

modules/gmysqlbackend/smysql.cc

index 04518bb5ce340d6a63a9d5ba1453865cbdaa959f..c8a3d880b5379db25a68fe2f4c254523bdd2c02a 100644 (file)
@@ -489,11 +489,6 @@ void SMySQL::connect()
 
   do {
 
-#if MYSQL_VERSION_ID >= 50013
-    my_bool set_reconnect = 0;
-    mysql_options(&d_db, MYSQL_OPT_RECONNECT, &set_reconnect);
-#endif
-
 #if MYSQL_VERSION_ID >= 50100
     if (d_timeout) {
       mysql_options(&d_db, MYSQL_OPT_READ_TIMEOUT, &d_timeout);