mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Miscellaneous #9409
This commit is contained in:
parent
5696806426
commit
c968e55da7
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user