https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
SharedContextHolder::SharedContextHolder(std::unique_ptr<ContextShared> shared_context)
    : shared(std::move(shared_context)) {}
void SharedContextHolder::reset() { shared.reset(); }
Context Context::createGlobal(ContextShared * shared)
{
    Context res;
    res.shared = shared;
    return res;
}
void Context::initGlobal()
{
    DatabaseCatalog::init(*this);
    TemporaryLiveViewCleaner::init(*this);
}
SharedContextHolder Context::createShared()
{
    return SharedContextHolder(std::make_unique<ContextShared>());
}
Context::~Context() = default;
InterserverIOHandler & Context::getInterserverIOHandler() { return shared->interserver_io_handler; }
std::unique_lock<std::recursive_mutex> Context::getLock() const
{
    ProfileEvents::increment(ProfileEvents::ContextLock);
    CurrentMetrics::Increment increment{CurrentMetrics::ContextLockWait};
    return std::unique_lock(shared->mutex);
}
ProcessList & Context::getProcessList() { return shared->process_list; }
const ProcessList & Context::getProcessList() const { return shared->process_list; }
MergeList & Context::getMergeList() { return shared->merge_list; }
const MergeList & Context::getMergeList() const { return shared->merge_list; }