From 24f47e9e3a6db4aa25cc00da01fcb1cd11e8f0ca Mon Sep 17 00:00:00 2001 From: Alexey Boykov Date: Wed, 1 Sep 2021 16:24:31 +0300 Subject: [PATCH] delete static Attempt to fix recursive_mutex lock failed. --- programs/local/CMakeLists.txt | 1 + programs/local/LocalServer.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/local/CMakeLists.txt b/programs/local/CMakeLists.txt index 62811b9c1b9..d965ecf05be 100644 --- a/programs/local/CMakeLists.txt +++ b/programs/local/CMakeLists.txt @@ -20,6 +20,7 @@ endif() if (ENABLE_FUZZING) add_compile_definitions(FUZZING_MODE=1) + set (WITH_COVERAGE ON) add_executable(fuzz-clickhouse-local LocalServer.cpp ${SRCS}) target_link_libraries(fuzz-clickhouse-local PRIVATE dbms diff --git a/programs/local/LocalServer.cpp b/programs/local/LocalServer.cpp index 6e65193857a..0a422576545 100644 --- a/programs/local/LocalServer.cpp +++ b/programs/local/LocalServer.cpp @@ -319,8 +319,8 @@ try /// processing queries - static String initial_create_query = getInitialCreateTableQuery(); - static String queries_str = initial_create_query; + String initial_create_query = getInitialCreateTableQuery(); + String queries_str = initial_create_query; if (first_time) { @@ -335,7 +335,7 @@ try } } - static const auto & settings = global_context->getSettingsRef(); + const auto & settings = global_context->getSettingsRef(); static std::vector queries; if (first_time)