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