small fixes

This commit is contained in:
Mikhail Artemenko 2024-09-10 12:26:03 +00:00
parent 08368d1d65
commit 0453d5e91a
2 changed files with 6 additions and 2 deletions

View File

@ -362,9 +362,13 @@ std::pair<ResponsePtr, Undo> TestKeeperRemoveRecursiveRequest::process(TestKeepe
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))
children.emplace_back(child_path, child_node);
}
if (children.size() > remove_nodes_limit)
{

View File

@ -1766,7 +1766,7 @@ private:
return false;
auto children = node_it->value.getChildren();
const auto & children = node_it->value.getChildren();
for (auto && child_name : children)
{
auto child_path = (root_fs_path / child_name.toView()).generic_string();