| 759 | } |
| 760 | |
| 761 | void DatabaseOrdinary::commitAlterTable(const StorageID &, const String & table_metadata_tmp_path, const String & table_metadata_path, const String & /*statement*/, ContextPtr /*query_context*/) |
| 762 | { |
| 763 | auto db_disk = getDisk(); |
| 764 | try |
| 765 | { |
| 766 | /// rename atomically replaces the old file with the new one. |
| 767 | db_disk->replaceFile(table_metadata_tmp_path, table_metadata_path); |
| 768 | } |
| 769 | catch (...) |
| 770 | { |
| 771 | db_disk->removeFileIfExists(table_metadata_tmp_path); |
| 772 | throw; |
| 773 | } |
| 774 | } |
| 775 | |
| 776 | void registerDatabaseOrdinary(DatabaseFactory & factory); |
| 777 | void registerDatabaseOrdinary(DatabaseFactory & factory) |
nothing calls this directly
no test coverage detected