From c968e55da719304b29eaafc4a873f83f626503b1 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 5 Mar 2020 23:00:49 +0300 Subject: [PATCH] Miscellaneous #9409 --- base/mysqlxx/src/Pool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/mysqlxx/src/Pool.cpp b/base/mysqlxx/src/Pool.cpp index 280c0e06276..b8216c254e6 100644 --- a/base/mysqlxx/src/Pool.cpp +++ b/base/mysqlxx/src/Pool.cpp @@ -21,8 +21,8 @@ void Pool::Entry::incrementRefCount() { if (!data) return; - ++(data->ref_count); - if (data->ref_count==1) + ++data->ref_count; + if (data->ref_count == 1) mysql_thread_init(); } @@ -32,8 +32,8 @@ void Pool::Entry::decrementRefCount() return; if (data->ref_count > 0) { - --(data->ref_count); - if (data->ref_count==0) + --data->ref_count; + if (data->ref_count == 0) mysql_thread_end(); } }