Changelog delete useless sleep in dctor

This commit is contained in:
zhanglistar 2022-02-22 19:07:33 +08:00
parent 6db770f841
commit 96fe231c35

View File

@ -723,8 +723,6 @@ Changelog::~Changelog()
{
flush();
log_files_to_delete_queue.finish();
/// Wait for background thread to finish to remove all logs
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
if (clean_log_thread.joinable())
clean_log_thread.join();
}