disable TSAN for real

This commit is contained in:
Amos Bird 2020-12-12 14:17:48 +08:00
parent 0aa75e6023
commit 04128c33e1
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4
2 changed files with 4 additions and 6 deletions

View File

@ -15,8 +15,6 @@ include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
add_headers_and_sources(storages_system .)
list (APPEND storages_system_sources ${CONFIG_BUILD})
set_source_files_properties(StorageSystemStackTrace.cpp PROPERTIES COMPILE_FLAGS -fno-sanitize=thread)
add_custom_target(generate-contributors
./StorageSystemContributors.sh
SOURCES StorageSystemContributors.sh

View File

@ -47,7 +47,7 @@ namespace
LazyPipeFDs notification_pipe;
void signalHandler(int, siginfo_t * info, void * context)
void NO_SANITIZE_THREAD signalHandler(int, siginfo_t * info, void * context)
{
auto saved_errno = errno; /// We must restore previous value of errno in signal handler.
@ -79,7 +79,7 @@ namespace
}
/// Wait for data in pipe and read it.
bool wait(int timeout_ms)
bool NO_SANITIZE_THREAD wait(int timeout_ms)
{
while (true)
{
@ -127,7 +127,7 @@ namespace
}
StorageSystemStackTrace::StorageSystemStackTrace(const StorageID & table_id_)
NO_SANITIZE_THREAD StorageSystemStackTrace::StorageSystemStackTrace(const StorageID & table_id_)
: IStorageSystemOneBlock<StorageSystemStackTrace>(table_id_)
{
notification_pipe.open();
@ -160,7 +160,7 @@ NamesAndTypesList StorageSystemStackTrace::getNamesAndTypes()
}
void StorageSystemStackTrace::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
void NO_SANITIZE_THREAD StorageSystemStackTrace::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
{
/// It shouldn't be possible to do concurrent reads from this table.
std::lock_guard lock(mutex);