From 6469ff269b9d11295e4d0a06d89be6ab24e40d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 8 Mar 2017 20:54:15 +0000 Subject: [PATCH] num_connections_used incorrectly reset --- lib/MySQL_Authentication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Authentication.cpp b/lib/MySQL_Authentication.cpp index f2fde9a79..c3bc9d36c 100644 --- a/lib/MySQL_Authentication.cpp +++ b/lib/MySQL_Authentication.cpp @@ -91,6 +91,7 @@ bool MySQL_Authentication::add(char * username, char * password, enum cred_usern ad->password=strdup(password); new_ad=true; ad->sha1_pass=NULL; + ad->num_connections_used=0; } ad->use_ssl=use_ssl; @@ -99,7 +100,6 @@ bool MySQL_Authentication::add(char * username, char * password, enum cred_usern ad->transaction_persistent=transaction_persistent; ad->fast_forward=fast_forward; ad->max_connections=max_connections; - ad->num_connections_used=0; ad->__active=true; if (new_ad) { cg.bt_map.insert(std::make_pair(hash1,ad));