Miscellaneous #9409

This commit is contained in:
Alexey Milovidov 2020-03-05 23:00:49 +03:00
parent 5696806426
commit c968e55da7

View File

@ -21,8 +21,8 @@ void Pool::Entry::incrementRefCount()
{ {
if (!data) if (!data)
return; return;
++(data->ref_count); ++data->ref_count;
if (data->ref_count==1) if (data->ref_count == 1)
mysql_thread_init(); mysql_thread_init();
} }
@ -32,8 +32,8 @@ void Pool::Entry::decrementRefCount()
return; return;
if (data->ref_count > 0) if (data->ref_count > 0)
{ {
--(data->ref_count); --data->ref_count;
if (data->ref_count==0) if (data->ref_count == 0)
mysql_thread_end(); mysql_thread_end();
} }
} }