mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
Merge pull request #9818 from Icinga/2.13.8/ElasticsearchWriter-Pause
ElasticsearchWriter#Pause(): call Flush() only once
This commit is contained in:
commit
56a22461c9
@ -117,9 +117,12 @@ void ElasticsearchWriter::Pause()
|
||||
m_HandleStateChanges.disconnect();
|
||||
m_HandleNotifications.disconnect();
|
||||
|
||||
Flush();
|
||||
m_WorkQueue.Join();
|
||||
Flush();
|
||||
|
||||
{
|
||||
std::unique_lock<std::mutex> lock (m_DataBufferMutex);
|
||||
Flush();
|
||||
}
|
||||
|
||||
Log(LogInformation, "ElasticsearchWriter")
|
||||
<< "'" << GetName() << "' paused.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user