ClickHouse/dbms
Alexander Kuzmenkov de72d117ce Fix a race condition in parallel table loading.
ThreadSanitizer reported that a data race occurs when we attach to a
database and load its tables concurrently. Remove the custom code that
waits for all tables to load, and replace it with a local thread pool
and its wait() method.

This changes observable behavior: before, we would load the tables
sequentially when loading the system database, or performing an ATTACH
DATABASE query. Now we always load tables of ordinary databases in
parallel.
2019-07-19 17:35:02 +03:00
..
benchmark
cmake Auto version update to [19.12.1.1] [54424] 2019-07-10 22:57:53 +03:00
programs Merge pull request #5899 from yandex/aku/perftest-mem 2019-07-16 18:09:44 +03:00
src Fix a race condition in parallel table loading. 2019-07-19 17:35:02 +03:00
tests Optimize count() 2019-07-17 02:29:17 +08:00
CMakeLists.txt Misc build fix 2019-07-17 02:27:11 +08:00