提交 e0b141e3 编写于 作者: A Alexey Milovidov 提交者: alexey-milovidov

Do not remove temporary directory on fetch [#CLICKHOUSE-2894].

上级 2a1eceef
......@@ -215,10 +215,7 @@ MergeTreeData::MutableDataPartPtr Fetcher::fetchPartImpl(
Poco::File part_file(part_path);
if (part_file.exists())
{
LOG_ERROR(log, "Directory " + part_path + " already exists. Removing.");
part_file.remove(true);
}
throw Exception("Directory " + part_path + " already exists.", ErrorCodes::DIRECTORY_ALREADY_EXISTS);
CurrentMetrics::Increment metric_increment{CurrentMetrics::ReplicatedFetch};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册