]> granicus.if.org Git - pdns/commitdiff
auth: GSQLBackend::inTransaction() is cheap, check it before the conn
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 16 Apr 2017 11:19:54 +0000 (13:19 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2017 13:47:08 +0000 (15:47 +0200)
pdns/backends/gsql/gsqlbackend.hh

index 4f8543088d56a162896d85ee1219a89b66bf6c4d..dfe2e221d68198c26c3d6768f701d104e534e3ec 100644 (file)
@@ -252,7 +252,7 @@ protected:
   }
   void reconnectIfNeeded()
   {
-    if (isConnectionUsable() || inTransaction()) {
+    if (inTransaction() || isConnectionUsable()) {
       return;
     }