ClickHouse/src/Storages/MergeTree/ZeroCopyLock.cpp
2023-01-20 15:48:33 +08:00

10 lines
301 B
C++

#include "ZeroCopyLock.h"
namespace DB
{
ZeroCopyLock::ZeroCopyLock(const zkutil::ZooKeeperPtr & zookeeper, const std::string & lock_path, const std::string & lock_message)
: lock(zkutil::createSimpleZooKeeperLock(zookeeper, lock_path, "part_exclusive_lock", lock_message))
{
}
}