mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
zkutil: fixed tryGet
This commit is contained in:
parent
0d7263958d
commit
9c7b5555fd
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user