提交 ebe5e3f9 编写于 作者: A Alexey Milovidov

Reverted unclear modification #2260

上级 210643c9
......@@ -800,16 +800,7 @@ void MergeTreeData::dropAllData()
LOG_TRACE(log, "dropAllData: removing data from filesystem.");
std::vector<Poco::File> data_dirs;
Poco::File(full_path).list(data_dirs);
auto detached_file = Poco::Path(full_path + "/detached").makeAbsolute().toString();
for (auto & data_dir : data_dirs)
{
if (Poco::Path(data_dir.path()).makeAbsolute().toString() != detached_file)
data_dir.remove(true);
}
Poco::File(full_path).remove(true);
LOG_TRACE(log, "dropAllData: done.");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册