mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
ServerUUID - fix writing uuid file
This commit is contained in:
parent
14d2d68cf7
commit
daf46d21d8
@ -564,7 +564,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
||||
global_context->setPath(path);
|
||||
|
||||
StatusFile status{path + "status", StatusFile::write_full_info};
|
||||
ServerUUIDFile uuid{path + "server_uuid", ServerUUIDFile::write_server_uuid};
|
||||
ServerUUIDFile uuid{path + "uuid", ServerUUIDFile::write_server_uuid};
|
||||
|
||||
/// Try to increase limit on number of open files.
|
||||
{
|
||||
@ -605,12 +605,6 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
||||
setupTmpPath(log, disk->getPath());
|
||||
}
|
||||
|
||||
/// write unique server UUID
|
||||
{
|
||||
Poco::File(path + "uuidfile").createFile();
|
||||
|
||||
}
|
||||
|
||||
/** Directory with 'flags': files indicating temporary settings for the server set by system administrator.
|
||||
* Flags may be cleared automatically after being applied by the server.
|
||||
* Examples: do repair of local data; clone all replicated tables from replica.
|
||||
|
Loading…
Reference in New Issue
Block a user