| 24 | } |
| 25 | |
| 26 | ReadSettings getReadSettingsForMetadata() |
| 27 | { |
| 28 | ReadSettings read_settings = getReadSettings(); |
| 29 | read_settings.local_fs_settings.method = LocalFSReadMethod::read; |
| 30 | read_settings.remote_fs_settings.method = RemoteFSReadMethod::threadpool; |
| 31 | read_settings.remote_fs_settings.prefetch = false; |
| 32 | read_settings.enable_filesystem_cache = false; |
| 33 | read_settings.read_through_distributed_cache = false; |
| 34 | read_settings.local_fs_settings.buffer_size = METADATA_FILE_BUFFER_SIZE; |
| 35 | read_settings.remote_fs_settings.buffer_size = METADATA_FILE_BUFFER_SIZE; |
| 36 | |
| 37 | return read_settings; |
| 38 | } |
| 39 | |
| 40 | ReadSettings ReadSettings::adjustBufferSize(size_t file_size) const |
| 41 | { |
no test coverage detected