From 8851a463af82d576cc1b403e7917b0ca2130d520 Mon Sep 17 00:00:00 2001 From: Kaveh Vahedipour Date: Tue, 2 Aug 2016 13:55:53 +0200 Subject: [PATCH] fixed compaction bug in RAFT --- arangod/Agency/State.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arangod/Agency/State.cpp b/arangod/Agency/State.cpp index 6428feb9fe..3b8c39b266 100644 --- a/arangod/Agency/State.cpp +++ b/arangod/Agency/State.cpp @@ -191,7 +191,7 @@ void State::removeConflicts (query_t const& transactions) { std::stringstream aql; aql << "FOR l IN log FILTER l._key >= '" << stringify(idx) << "' REMOVE l IN log"; - LOG(WARN) << aql.str(); + arangodb::aql::Query query(false, _vocbase, aql.str().c_str(), aql.str().size(), bindVars, nullptr, arangodb::aql::PART_MAIN); @@ -201,8 +201,7 @@ void State::removeConflicts (query_t const& transactions) { THROW_ARANGO_EXCEPTION_MESSAGE(queryResult.code, queryResult.details); } - VPackSlice result = queryResult.result->slice(); - LOG(WARN) << result.toJson(); + queryResult.result->slice(); // volatile logs {