| 284 | } |
| 285 | |
| 286 | MergeTreeDataPartChecksums MergeTreeDataPartChecksums::deserializeFrom(const String & s) |
| 287 | { |
| 288 | ReadBufferFromString in(s); |
| 289 | MergeTreeDataPartChecksums res; |
| 290 | if (!res.read(in)) |
| 291 | throw Exception(ErrorCodes::FORMAT_VERSION_TOO_OLD, "Checksums format is too old"); |
| 292 | assertEOF(in); |
| 293 | return res; |
| 294 | } |
| 295 | |
| 296 | bool MergeTreeDataPartChecksums::isBadChecksumsErrorCode(int code) |
| 297 | { |
nothing calls this directly
no test coverage detected