MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / DiskLocalCheckThread

Method DiskLocalCheckThread

src/Disks/DiskLocalCheckThread.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19static const auto DISK_CHECK_ERROR_RETRY_TIME = 3;
20
21DiskLocalCheckThread::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
30void DiskLocalCheckThread::startup()
31{

Callers

nothing calls this directly

Calls 6

createEmptyFunction · 0.85
getLoggerFunction · 0.50
getContextFunction · 0.50
runFunction · 0.50
createTaskMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected