zk: added retry to exists [#METR-11718]

This commit is contained in:
Pavel Kartavyy 2014-06-26 15:35:12 +04:00
parent 751daffb9b
commit 0cd5c39456

View File

@ -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))