ClickHouse/src/Common/StatusFile.h

26 lines
351 B
C++
Raw Normal View History

2016-01-17 13:34:36 +00:00
#pragma once
#include <string>
#include <boost/noncopyable.hpp>
namespace DB
{
2017-03-09 00:56:38 +00:00
/** Provides that no more than one server works with one data directory.
2016-01-17 13:34:36 +00:00
*/
class StatusFile : private boost::noncopyable
{
public:
explicit StatusFile(const std::string & path_);
~StatusFile();
2016-01-17 13:34:36 +00:00
private:
const std::string path;
int fd = -1;
2016-01-17 13:34:36 +00:00
};
}