From 6e5382da548a4d8ffbd73089a3a502778d477176 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Tue, 10 Jul 2012 23:49:31 -0400 Subject: [PATCH] Re-adding the needed call to FinishedRotation in the ES writer plugin. --- src/logging/writers/ElasticSearch.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/logging/writers/ElasticSearch.cc b/src/logging/writers/ElasticSearch.cc index 4461508083..1b8dfa495d 100644 --- a/src/logging/writers/ElasticSearch.cc +++ b/src/logging/writers/ElasticSearch.cc @@ -296,10 +296,10 @@ bool ElasticSearch::DoRotate(string rotated_path, double open, double close, boo //HTTPSend(curl_handle); } - //if ( ! FinishedRotation(current_index, prev_index, open, close, terminating) ) - // { - // Error(Fmt("error rotating %s to %s", prev_index.c_str(), current_index.c_str())); - // } + if ( ! FinishedRotation(current_index, prev_index, open, close, terminating) ) + { + Error(Fmt("error rotating %s to %s", prev_index.c_str(), current_index.c_str())); + } return true; }