MCPcopy Create free account
hub / github.com/ByConity/ByConity / tryGetInstance

Method tryGetInstance

src/Statistics/AutoStatisticsManager.cpp:422–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422AutoStatisticsManager * AutoStatisticsManager::tryGetInstance()
423{
424 if (AutoStatisticsManager::is_initialized && the_instance.get())
425 {
426 return the_instance.get();
427 }
428 else
429 {
430 return nullptr;
431 }
432}
433
434bool AutoStatisticsManager::isNowValidTimeRange()
435{

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected