mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
351 B
C++
26 lines
351 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <boost/noncopyable.hpp>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
/** Provides that no more than one server works with one data directory.
|
|
*/
|
|
class StatusFile : private boost::noncopyable
|
|
{
|
|
public:
|
|
explicit StatusFile(const std::string & path_);
|
|
~StatusFile();
|
|
|
|
private:
|
|
const std::string path;
|
|
int fd = -1;
|
|
};
|
|
|
|
|
|
}
|