Merge pull request #61952 from shabroo/patch-1

Fixing atomic engine warning message
This commit is contained in:
Alexey Milovidov 2024-03-27 01:43:11 +03:00 committed by GitHub
commit c39e625670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1219,7 +1219,7 @@ void Context::addWarningMessageAboutDatabaseOrdinary(const String & database_nam
/// We don't use getFlagsPath method, because it takes a shared lock. /// We don't use getFlagsPath method, because it takes a shared lock.
auto convert_databases_flag = fs::path(shared->flags_path) / "convert_ordinary_to_atomic"; auto convert_databases_flag = fs::path(shared->flags_path) / "convert_ordinary_to_atomic";
auto message = fmt::format("Server has databases (for example `{}`) with Ordinary engine, which was deprecated. " auto message = fmt::format("Server has databases (for example `{}`) with Ordinary engine, which was deprecated. "
"To convert this database to a new Atomic engine, create a flag {} and make sure that ClickHouse has write permission for it. " "To convert this database to the new Atomic engine, create a flag {} and make sure that ClickHouse has write permission for it. "
"Example: sudo touch '{}' && sudo chmod 666 '{}'", "Example: sudo touch '{}' && sudo chmod 666 '{}'",
database_name, database_name,
convert_databases_flag.string(), convert_databases_flag.string(), convert_databases_flag.string()); convert_databases_flag.string(), convert_databases_flag.string(), convert_databases_flag.string());