| 19 | static const auto DISK_CHECK_ERROR_RETRY_TIME = 3; |
| 20 | |
| 21 | DiskLocalCheckThread::DiskLocalCheckThread(DiskLocal * disk_, ContextPtr context_, UInt64 local_disk_check_period_ms) |
| 22 | : WithContext(context_) |
| 23 | , disk(std::move(disk_)) |
| 24 | , check_period_ms(local_disk_check_period_ms) |
| 25 | , log(getLogger("DiskLocalCheckThread")) |
| 26 | { |
| 27 | task = getContext()->getSchedulePool().createTask(StorageID::createEmpty(), log->name(), [this] { run(); }); |
| 28 | } |
| 29 | |
| 30 | void DiskLocalCheckThread::startup() |
| 31 | { |
nothing calls this directly
no test coverage detected