ClickHouse/dbms/src/Common/StatusFile.h
Alexey Milovidov 51044279e5 Squashed #2471
2018-06-05 23:09:51 +03:00

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;
};
}