]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gpgsql: avoid reconnect on connect 9318/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Jul 2020 09:36:53 +0000 (11:36 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Jul 2020 09:36:53 +0000 (11:36 +0200)
modules/gpgsqlbackend/gpgsqlbackend.cc

index aead98326f60c01b57484aa1a47253934e080e68..8901f33e9784b20bf33c670a55f40b73b69091ea 100644 (file)
@@ -52,8 +52,7 @@ gPgSQLBackend::gPgSQLBackend(const string &mode, const string &suffix)  : GSQLBa
     g_log<<Logger::Error<<mode<<" Connection failed: "<<e.txtReason()<<endl;
     throw PDNSException("Unable to launch "+mode+" connection: "+e.txtReason());
   }
-
-  reconnect();
+  allocateStatements();
   g_log<<Logger::Info<<mode<<" Connection successful. Connected to database '"<<getArg("dbname")<<"' on '"<<getArg("host")<<"'."<<endl;
 }