mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
small fixes
This commit is contained in:
parent
08368d1d65
commit
0453d5e91a
@ -362,9 +362,13 @@ std::pair<ResponsePtr, Undo> TestKeeperRemoveRecursiveRequest::process(TestKeepe
|
|||||||
|
|
||||||
std::vector<std::pair<std::string, Coordination::TestKeeper::Node>> children;
|
std::vector<std::pair<std::string, Coordination::TestKeeper::Node>> children;
|
||||||
|
|
||||||
for (const auto & [child_path, child_node] : container)
|
for (auto it = std::next(root_it); it != container.end(); ++it)
|
||||||
|
{
|
||||||
|
const auto & [child_path, child_node] = *it;
|
||||||
|
|
||||||
if (child_path.starts_with(path))
|
if (child_path.starts_with(path))
|
||||||
children.emplace_back(child_path, child_node);
|
children.emplace_back(child_path, child_node);
|
||||||
|
}
|
||||||
|
|
||||||
if (children.size() > remove_nodes_limit)
|
if (children.size() > remove_nodes_limit)
|
||||||
{
|
{
|
||||||
|
@ -1766,7 +1766,7 @@ private:
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
auto children = node_it->value.getChildren();
|
const auto & children = node_it->value.getChildren();
|
||||||
for (auto && child_name : children)
|
for (auto && child_name : children)
|
||||||
{
|
{
|
||||||
auto child_path = (root_fs_path / child_name.toView()).generic_string();
|
auto child_path = (root_fs_path / child_name.toView()).generic_string();
|
||||||
|
Loading…
Reference in New Issue
Block a user