ServerUUID - fix writing uuid file

This commit is contained in:
bharatnc 2021-02-04 11:54:55 -08:00
parent 14d2d68cf7
commit daf46d21d8

View File

@ -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.