From 7372a18d453b08257139873a18a57b00a913e4a6 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Tue, 23 Jun 2020 09:41:57 +0300 Subject: [PATCH] fixup --- programs/benchmark/Benchmark.cpp | 2 ++ programs/local/LocalServer.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/programs/benchmark/Benchmark.cpp b/programs/benchmark/Benchmark.cpp index bb814f474e3..d4af0a7e402 100644 --- a/programs/benchmark/Benchmark.cpp +++ b/programs/benchmark/Benchmark.cpp @@ -560,6 +560,8 @@ int mainEntryClickHouseBenchmark(int argc, char ** argv) return 1; } + GlobalThreadPool::initialize(); + print_stacktrace = options.count("stacktrace"); UseSSL use_ssl; diff --git a/programs/local/LocalServer.cpp b/programs/local/LocalServer.cpp index 8ce03ac0867..ba07eda8707 100644 --- a/programs/local/LocalServer.cpp +++ b/programs/local/LocalServer.cpp @@ -147,6 +147,8 @@ try return Application::EXIT_OK; } + GlobalThreadPool::initialize(); + shared_context = Context::createShared(); context = std::make_unique(Context::createGlobal(shared_context.get())); context->makeGlobalContext();