zkutil: fixed tryGet

This commit is contained in:
Michael Kolupaev 2014-06-27 16:08:15 +04:00
parent 0d7263958d
commit 9c7b5555fd
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ private:
/// методы не бросают исключений, а возвращают коды ошибок
int32_t createImpl(const std::string & path, const std::string & data, int32_t mode, std::string & pathCreated);
int32_t removeImpl(const std::string & path, int32_t version = -1);
bool getImpl(const std::string & path, std::string & res, Stat * stat = nullptr, WatchFuture * watch = nullptr);
int32_t getImpl(const std::string & path, std::string & res, Stat * stat = nullptr, WatchFuture * watch = nullptr);
int32_t setImpl(const std::string & path, const std::string & data,
int32_t version = -1, Stat * stat = nullptr);
int32_t getChildrenImpl(const std::string & path, Strings & res,

View File

@ -272,7 +272,7 @@ bool ZooKeeper::exists(const std::string & path, Stat * stat_, WatchFuture * wat
return true;
}
bool ZooKeeper::getImpl(const std::string & path, std::string & res, Stat * stat_, WatchFuture * watch)
int32_t ZooKeeper::getImpl(const std::string & path, std::string & res, Stat * stat_, WatchFuture * watch)
{
char buffer[MAX_NODE_SIZE];
int buffer_len = MAX_NODE_SIZE;