Merge pull request #34931 from azat/keeper-changelog-cleanup-fix

Avoid busy polling in keeper while searching for changelog files to delete
This commit is contained in:
Maksim Kita 2022-03-02 11:10:13 +01:00 committed by GitHub
commit d095e7d684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,7 +732,7 @@ void Changelog::cleanLogThread()
while (!log_files_to_delete_queue.isFinishedAndEmpty())
{
std::string path;
if (log_files_to_delete_queue.tryPop(path))
if (log_files_to_delete_queue.pop(path))
{
std::error_code ec;
if (std::filesystem::remove(path, ec))