From 55d6672bc43579dad3edaa1e8c5d595025d50fc8 Mon Sep 17 00:00:00 2001 From: Mikhail Artemenko Date: Wed, 11 Sep 2024 10:00:40 +0000 Subject: [PATCH] add early break for test keeper impl --- src/Common/ZooKeeper/TestKeeper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/ZooKeeper/TestKeeper.cpp b/src/Common/ZooKeeper/TestKeeper.cpp index 3982971163c..2fbe9110b6b 100644 --- a/src/Common/ZooKeeper/TestKeeper.cpp +++ b/src/Common/ZooKeeper/TestKeeper.cpp @@ -368,6 +368,8 @@ std::pair TestKeeperRemoveRecursiveRequest::process(TestKeepe if (child_path.starts_with(path)) children.emplace_back(child_path, child_node); + else + break; } if (children.size() > remove_nodes_limit)