mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
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:
commit
d095e7d684
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user