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

dbms: Added comment [#METR-2944].

上级 2e0943fb
......@@ -1158,6 +1158,8 @@ void StorageMergeTree::rename(const String & new_path_to_db, const String & new_
{
joinMergeThreads();
/// Кажется тут race condition - в этот момент мердж может запуститься снова.
std::string new_full_path = new_path_to_db + escapeForFileName(new_name) + '/';
Poco::File(full_path).renameTo(new_full_path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册