mirror of https://gitee.com/bigwinds/arangodb
fixed compaction bug in RAFT
This commit is contained in:
parent
e326dc3c53
commit
5c0c95f618
|
@ -191,7 +191,7 @@ void State::removeConflicts (query_t const& transactions) {
|
||||||
std::stringstream aql;
|
std::stringstream aql;
|
||||||
aql << "FOR l IN log FILTER l._key >= '" << stringify(idx)
|
aql << "FOR l IN log FILTER l._key >= '" << stringify(idx)
|
||||||
<< "' REMOVE l IN log";
|
<< "' REMOVE l IN log";
|
||||||
LOG(WARN) << aql.str();
|
|
||||||
arangodb::aql::Query
|
arangodb::aql::Query
|
||||||
query(false, _vocbase, aql.str().c_str(), aql.str().size(), bindVars,
|
query(false, _vocbase, aql.str().c_str(), aql.str().size(), bindVars,
|
||||||
nullptr, arangodb::aql::PART_MAIN);
|
nullptr, arangodb::aql::PART_MAIN);
|
||||||
|
@ -201,8 +201,7 @@ void State::removeConflicts (query_t const& transactions) {
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(queryResult.code, queryResult.details);
|
THROW_ARANGO_EXCEPTION_MESSAGE(queryResult.code, queryResult.details);
|
||||||
}
|
}
|
||||||
|
|
||||||
VPackSlice result = queryResult.result->slice();
|
queryResult.result->slice();
|
||||||
LOG(WARN) << result.toJson();
|
|
||||||
|
|
||||||
// volatile logs
|
// volatile logs
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue