mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
dbms: development [#CONV-2944].
This commit is contained in:
parent
50af0bc1c4
commit
5646959300
@ -994,7 +994,9 @@ void StorageMergeTree::clearOldParts()
|
||||
LOG_TRACE(log, "Clearing old parts");
|
||||
for (DataParts::iterator it = all_data_parts.begin(); it != all_data_parts.end();)
|
||||
{
|
||||
if (it->referenceCount() == 1)
|
||||
int ref_count = it->referenceCount();
|
||||
LOG_TRACE(log, (*it)->name << ": ref_count = " << ref_count);
|
||||
if (ref_count == 1)
|
||||
{
|
||||
LOG_DEBUG(log, "Removing part " << (*it)->name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user