From: Remi Gacogne Date: Sun, 16 Apr 2017 11:19:54 +0000 (+0200) Subject: auth: GSQLBackend::inTransaction() is cheap, check it before the conn X-Git-Tag: rec-4.1.0-alpha1~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fc3a46d88e86b5572f36e9d0bf0d35ef3c6c172;p=thirdparty%2Fpdns.git auth: GSQLBackend::inTransaction() is cheap, check it before the conn --- diff --git a/pdns/backends/gsql/gsqlbackend.hh b/pdns/backends/gsql/gsqlbackend.hh index 4f8543088d..dfe2e221d6 100644 --- a/pdns/backends/gsql/gsqlbackend.hh +++ b/pdns/backends/gsql/gsqlbackend.hh @@ -252,7 +252,7 @@ protected: } void reconnectIfNeeded() { - if (isConnectionUsable() || inTransaction()) { + if (inTransaction() || isConnectionUsable()) { return; }