mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
Fix tsan in test test_temporary_data_in_cache
This commit is contained in:
parent
67d695580a
commit
69de3a3c2d
@ -34,8 +34,6 @@ FileCache::FileCache(const FileCacheSettings & settings)
|
|||||||
|
|
||||||
if (settings.enable_filesystem_query_cache_limit)
|
if (settings.enable_filesystem_query_cache_limit)
|
||||||
query_limit = std::make_unique<FileCacheQueryLimit>();
|
query_limit = std::make_unique<FileCacheQueryLimit>();
|
||||||
|
|
||||||
cleanup_task = Context::getGlobalContextInstance()->getSchedulePool().createTask("FileCacheCleanup", [this]{ cleanupThreadFunc(); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FileCache::Key FileCache::createKeyForPath(const String & path)
|
FileCache::Key FileCache::createKeyForPath(const String & path)
|
||||||
@ -99,6 +97,8 @@ void FileCache::initialize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
is_initialized = true;
|
is_initialized = true;
|
||||||
|
|
||||||
|
cleanup_task = Context::getGlobalContextInstance()->getSchedulePool().createTask("FileCacheCleanup", [this]{ cleanupThreadFunc(); });
|
||||||
cleanup_task->activate();
|
cleanup_task->activate();
|
||||||
cleanup_task->scheduleAfter(delayed_cleanup_interval_ms);
|
cleanup_task->scheduleAfter(delayed_cleanup_interval_ms);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user