Merge pull request #8801 from vitlibar/fix-race-system-reload-all-dictionaries

Fix race when executing SYSTEM RELOAD ALL DICTIONARIES.
This commit is contained in:
alexey-milovidov 2020-01-23 18:10:17 +03:00 committed by GitHub
commit f563d7f4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -540,6 +540,7 @@ public:
Strings getAllTriedToLoadNames() const
{
std::lock_guard lock{mutex};
Strings names;
for (auto & [name, info] : infos)
if (info.triedToLoad())