dbms: not logging some useless info; added comment. [#METR-10202]

This commit is contained in:
Michael Kolupaev 2014-04-25 12:46:37 +04:00
parent 1e34ee442a
commit 94cae0b3ad
2 changed files with 2 additions and 2 deletions

View File

@ -182,6 +182,7 @@ private:
void threadFunction()
{
/// Начнем со случайной задачи (качество rand() не имеет значения).
size_t i = static_cast<size_t>(rand());
while (!shutdown)
@ -224,6 +225,7 @@ private:
if (task->function(context))
{
/// Если у таска получилось выполнить какую-то работу, запустим его же снова без паузы.
--i;
need_sleep = false;
}

View File

@ -288,7 +288,6 @@ void MergeTreeData::loadDataParts()
if ((*curr_jt)->contains(**prev_jt))
{
LOG_INFO(log, "Part " << (*curr_jt)->name << " contains " << (*prev_jt)->name);
(*prev_jt)->remove_time = time(0);
data_parts.erase(prev_jt);
prev_jt = curr_jt;
@ -296,7 +295,6 @@ void MergeTreeData::loadDataParts()
}
else if ((*prev_jt)->contains(**curr_jt))
{
LOG_INFO(log, "Part " << (*prev_jt)->name << " contains " << (*curr_jt)->name);
(*curr_jt)->remove_time = time(0);
data_parts.erase(curr_jt++);
}