Quick fix to the ElasticSearch writer.

This commit is contained in:
Seth Hall 2014-03-28 08:37:37 -04:00
parent 0f3ed1a553
commit 9d6c8769ea

View file

@ -112,6 +112,8 @@ bool ElasticSearch::DoWrite(int num_fields, const Field* const * fields,
json->Describe(&buffer, num_fields, fields, vals);
buffer.AddRaw("\n", 1);
counter++;
if ( counter >= BifConst::LogElasticSearch::max_batch_size ||
uint(buffer.Len()) >= BifConst::LogElasticSearch::max_byte_size )