| 930 | } |
| 931 | |
| 932 | size_t BackupImpl::copyFileToDisk(const String & file_name, |
| 933 | DiskPtr destination_disk, const String & destination_path, WriteMode write_mode) const |
| 934 | { |
| 935 | #if CLICKHOUSE_CLOUD |
| 936 | String object_key = getObjectKey(file_name); |
| 937 | if (!object_key.empty()) |
| 938 | return copyFileToDiskByObjectKey(object_key, destination_disk, destination_path, write_mode); |
| 939 | #endif |
| 940 | return copyFileToDisk(getFileSizeAndChecksum(file_name), destination_disk, destination_path, write_mode); |
| 941 | } |
| 942 | |
| 943 | size_t BackupImpl::copyFileToDisk(const SizeAndChecksum & size_and_checksum, |
| 944 | DiskPtr destination_disk, const String & destination_path, WriteMode write_mode) const |
no test coverage detected