mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
dbms: fixed build [#METR-2944].
This commit is contained in:
parent
e4bd9b1dec
commit
dd4cef4781
@ -470,7 +470,7 @@ int Server::main(const std::vector<std::string> & args)
|
||||
bool has_zookeeper = false;
|
||||
if (config().has("zookeeper"))
|
||||
{
|
||||
global_context->setZooKeeper(new zkutil::ZooKeeper(config(), "zookeeper"));
|
||||
global_context->setZooKeeper(std::make_shared<zkutil::ZooKeeper>(config(), "zookeeper"));
|
||||
has_zookeeper = true;
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ int main()
|
||||
|
||||
try
|
||||
{
|
||||
zkutil::Lock l(new zkutil::ZooKeeper("localhost:2181"), "/test", "test_lock");
|
||||
zkutil::Lock l(std::make_shared<zkutil::ZooKeeper>("localhost:2181"), "/test", "test_lock");
|
||||
std::cout << "check " << l.check() << std::endl;
|
||||
std::cout << "lock tryLock() " << l.tryLock() << std::endl;
|
||||
std::cout << "check " << l.check() << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user