[refactor](cache) Refactor preloaded timezone global cache (#24694)

Refactor preloaded timezone global cache
This commit is contained in:
zclllyybb
2023-09-21 17:26:41 +08:00
committed by GitHub
parent b9997d69fa
commit 85fb46bb71
13 changed files with 119 additions and 199 deletions

View File

@ -155,10 +155,7 @@ Status ExecEnv::_init(const std::vector<StorePath>& store_paths) {
_broker_client_cache = new BrokerServiceClientCache(config::max_client_cache_size_per_host);
TimezoneUtils::load_timezone_names();
// _global_zone_cache is not owned by ExecEnv ... maybe should refactor.
_global_zone_cache = std::make_unique<vectorized::ZoneList>();
TimezoneUtils::load_timezones_to_cache(*_global_zone_cache);
TimezoneUtils::load_timezones_to_cache();
ThreadPoolBuilder("SendBatchThreadPool")
.set_min_threads(config::send_batch_thread_pool_thread_num)