| 82 | } |
| 83 | |
| 84 | static uuid getOldDatabaseID(FileInfo& dataFileInfo) { |
| 85 | auto oldHeader = DatabaseHeader::readDatabaseHeader(dataFileInfo); |
| 86 | if (!oldHeader.has_value()) { |
| 87 | throw InternalException("Found a shadow file for database {} but no valid database header. " |
| 88 | "The database is corrupted, please recreate it."); |
| 89 | } |
| 90 | return oldHeader->databaseID; |
| 91 | } |
| 92 | |
| 93 | void ShadowFile::replayShadowPageRecords(ClientContext& context) { |
| 94 | if (context.getDBConfig()->readOnly) { |
no outgoing calls
no test coverage detected