ClickHouse/dbms/src/Server/StatusFile.h
2016-01-17 16:34:36 +03:00

26 lines
447 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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