From d0044886ab1b41f30cd8ec9255411897f625ecac Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Tue, 1 Dec 2020 11:45:10 +0800 Subject: [PATCH] fix TSan --- src/Storages/System/StorageSystemStackTrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/System/StorageSystemStackTrace.cpp b/src/Storages/System/StorageSystemStackTrace.cpp index e822ac26744..a72fbeb2d5d 100644 --- a/src/Storages/System/StorageSystemStackTrace.cpp +++ b/src/Storages/System/StorageSystemStackTrace.cpp @@ -34,7 +34,7 @@ namespace ErrorCodes namespace { // Initialized in StorageSystemStackTrace's ctor and used in signalHandler. - pid_t expected_pid; + std::atomic expected_pid; const int sig = SIGRTMIN; std::atomic sequence_num = 0; /// For messages sent via pipe.