dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2012-07-31 18:25:16 +00:00
parent 50af0bc1c4
commit 5646959300

View File

@ -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);