mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
zk: added retry to exists [#METR-11718]
This commit is contained in:
parent
751daffb9b
commit
0cd5c39456
@ -262,7 +262,7 @@ int32_t ZooKeeper::existsImpl(const std::string & path, Stat * stat_, WatchFutur
|
||||
|
||||
bool ZooKeeper::exists(const std::string & path, Stat * stat_, WatchFuture * watch)
|
||||
{
|
||||
int32_t code = existsImpl(path, stat_, watch);
|
||||
int32_t code = retry(boost::bind(&ZooKeeper::existsImpl, this, path, stat_, watch));
|
||||
|
||||
if (!( code == ZOK ||
|
||||
code == ZNONODE))
|
||||
|
Loading…
Reference in New Issue
Block a user