mirror of https://github.com/Icinga/icinga2.git
Also apply buffer flush fix for Elasticsearch feature
This commit is contained in:
parent
cb3729bc6a
commit
06eacd13ab
|
@ -398,6 +398,10 @@ void ElasticsearchWriter::FlushTimeout()
|
||||||
|
|
||||||
void ElasticsearchWriter::Flush()
|
void ElasticsearchWriter::Flush()
|
||||||
{
|
{
|
||||||
|
/* Flush can be called from 1) Timeout 2) Threshold 3) on shutdown/reload. */
|
||||||
|
if (m_DataBuffer.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
/* Ensure you hold a lock against m_DataBuffer so that things
|
/* Ensure you hold a lock against m_DataBuffer so that things
|
||||||
* don't go missing after creating the body and clearing the buffer.
|
* don't go missing after creating the body and clearing the buffer.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue