ClickHouse/dbms/src/Server/StatusFile.h

26 lines
447 B
C++
Raw Normal View History

2016-01-17 13:34:36 +00:00
#pragma once
#include <string>
#include <boost/noncopyable.hpp>
namespace DB
{
/** Обеспечивает, что с одной директорией с данными может одновременно работать не более одного сервера.
*/
class StatusFile : private boost::noncopyable
{
public:
StatusFile(const std::string & path_);
~StatusFile();
private:
const std::string path;
int fd = -1;
};
}