From 43f0b419ea010183d9c4a24532db906e4f611a9a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 7 May 2018 19:30:47 +0300 Subject: [PATCH] Removed useless code [#CLICKHOUSE-2] --- dbms/src/Common/ZooKeeper/ZooKeeper.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dbms/src/Common/ZooKeeper/ZooKeeper.cpp b/dbms/src/Common/ZooKeeper/ZooKeeper.cpp index c348a5fab01..dbcc51ccc92 100644 --- a/dbms/src/Common/ZooKeeper/ZooKeeper.cpp +++ b/dbms/src/Common/ZooKeeper/ZooKeeper.cpp @@ -745,14 +745,10 @@ int32_t ZooKeeper::tryMultiNoThrow(const Requests & requests, Responses & respon { return multiImpl(requests, responses); } - catch (ZooKeeperImpl::Exception & e) + catch (const ZooKeeperImpl::Exception & e) { return e.code; } - catch (...) - { - throw; - } }