mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
10 lines
301 B
C++
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))
|
|
{
|
|
}
|
|
}
|