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

Method startup

src/Disks/DiskLocalCheckThread.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void DiskLocalCheckThread::startup()
31{
32 need_stop = false;
33 retry = 0;
34 task->activateAndSchedule();
35 LOG_INFO(
36 log,
37 "Disk check for disk {} started with period {}",
38 disk->getName(),
39 formatReadableTime(static_cast<double>(check_period_ms) * 1e6 /* ns */));
40}
41
42static int diskStatusChange(bool old_val, bool new_val)
43{

Callers

nothing calls this directly

Calls 3

formatReadableTimeFunction · 0.85
activateAndScheduleMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected