提交 9cf14d2c 编写于 作者: V Vitaliy Lyudvichenko

Remove obsolete code. [#CLICKHOUSE-2]

上级 8aafa3b0
......@@ -541,12 +541,7 @@ private:
/// Current set of data parts.
DataParts data_parts;
mutable std::mutex data_parts_mutex;
/// The set of all data parts including already merged but not yet deleted. Usually it is small (tens of elements).
/// The part is referenced from here, from the list of current parts and from each thread reading from it.
/// This means that if reference count is 1 - the part is not used right now and can be deleted.
// DataParts all_data_parts;
// mutable std::mutex all_data_parts_mutex;
// TODO: this mutex could be a bottleneck. If so, make it shared, and split parts onto partitions
/// Used to serialize calls to grabOldParts.
std::mutex grab_old_parts_mutex;
......
......@@ -538,10 +538,9 @@ void MergeTreeDataPart::remove() const
}
catch (const Poco::FileNotFoundException & e)
{
LOG_WARNING(storage.log, "Directory " << from << " (part to remove) doesn't exist or one of nested files has gone."
LOG_ERROR(storage.log, "Directory " << from << " (part to remove) doesn't exist or one of nested files has gone."
" Most likely this is due to manual removing. This should be discouraged. Ignoring.");
std::terminate();
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册