| 335 | } |
| 336 | |
| 337 | void writeMetadataFile(std::shared_ptr<IDisk> disk, const String & file_path, std::string_view content, bool fsync_metadata) |
| 338 | { |
| 339 | auto out = disk->writeFile(file_path, content.size(), WriteMode::Rewrite, getWriteSettingsForMetadata()); |
| 340 | writeString(content, *out); |
| 341 | |
| 342 | out->next(); |
| 343 | if (fsync_metadata) |
| 344 | out->sync(); |
| 345 | out->finalize(); |
| 346 | out.reset(); |
| 347 | } |
| 348 | |
| 349 | void DatabaseWithAltersOnDiskBase::alterDatabaseComment(const AlterCommand & command, ContextPtr query_context [[maybe_unused]]) |
| 350 | { |
no test coverage detected