Merge pull request #33432 from ucasfl/wv

fix misleading log message in StorageWindowView
This commit is contained in:
Maksim Kita 2022-01-06 20:47:09 +03:00 committed by GitHub
commit 7b0aa12630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -877,12 +877,12 @@ void StorageWindowView::threadFuncFireEvent()
std::unique_lock lock(fire_signal_mutex);
while (!shutdown_called)
{
LOG_TRACE(log, "Fire events: {}", fire_signal.size());
bool signaled = std::cv_status::no_timeout == fire_signal_condition.wait_for(lock, std::chrono::seconds(5));
if (!signaled)
continue;
LOG_TRACE(log, "Fire events: {}", fire_signal.size());
while (!fire_signal.empty())
{
fire(fire_signal.front());