ClickHouse/src
Azat Khuzhin 7ffa15b94b ThreadPool: fix thread_id assignment
As found by @KochetovNicolai before this patch, lambda in
ThreadFromGlobalPool() ctor assigns value only to a copy of the
thread_id value, and so check in joinable() had been working
incorrectly, fix this by changing the value not the shared_ptr itself.

Also it is not safe to assign thread_id w/o atomics, since this can be
racy, so wrap id with std::atomic<>

Fixes: #28431
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-07-13 15:42:46 +03:00
..
Access Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
AggregateFunctions Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Backups BACKUP/RESTORE ON CLUSTER use async mode on replicas now. 2022-07-08 22:26:01 +02:00
Bridge
BridgeHelper
Client Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Columns Merge pull request #38947 from soyayaos/master 2022-07-07 22:25:42 +02:00
Common ThreadPool: fix thread_id assignment 2022-07-13 15:42:46 +03:00
Compression Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Coordination Fix path retrieval for Keeper's state (#39148) 2022-07-13 11:25:34 +02:00
Core Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Daemon disable instrumentation of sanitizer death callback 2022-07-07 22:10:12 +02:00
Databases Merge master 2022-07-04 14:13:26 +02:00
DataTypes Fix code in getLeastSupertype function 2022-07-11 14:47:51 +00:00
Dictionaries Merge pull request #38617 from azat/contrib-debug-symbols 2022-07-06 14:40:24 +02:00
Disks Merge pull request #37882 from excitoon-favorites/nodeleteobjects 2022-07-12 19:09:55 +02:00
Formats Put column names in quotes 2022-06-30 16:14:30 +00:00
Functions keep LowCardinality type in array() and map() functions 2022-07-12 13:31:00 +00:00
Interpreters Fix trivial count with empty set 2022-07-13 12:54:52 +08:00
IO Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Loggers
Parsers Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
Processors Merge pull request #39132 from ClickHouse/fix-data-race-in-completed-pipeline-executor 2022-07-13 13:39:44 +02:00
QueryPipeline Better 2022-07-12 22:21:46 +08:00
Server Merge pull request #37860 from amosbird/remove-duplicated-log 2022-07-07 08:16:06 +03:00
Storages Slightly better interface of waitForMutation 2022-07-13 12:34:12 +08:00
TableFunctions Merge pull request #38816 from Avogar/fix-values-func 2022-07-07 17:27:18 +02:00
CMakeLists.txt Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
configure_config.cmake Merge branch 'master' into nats-integration 2022-07-04 21:06:07 +02:00
NOTICE