mirror of https://gitee.com/bigwinds/arangodb
fixed invalid read
This commit is contained in:
parent
0970715708
commit
aa64e86d72
|
@ -207,12 +207,11 @@ size_t State::removeConflicts(query_t const& transactions) {
|
||||||
<< _log.at(pos).term;
|
<< _log.at(pos).term;
|
||||||
|
|
||||||
// persisted logs
|
// persisted logs
|
||||||
std::stringstream aql;
|
std::string const aql(std::string("FOR l IN log FILTER l._key >= '") +
|
||||||
aql << "FOR l IN log FILTER l._key >= '" << stringify(idx)
|
stringify(idx) + "' REMOVE l IN log");
|
||||||
<< "' REMOVE l IN log";
|
|
||||||
|
|
||||||
arangodb::aql::Query query(false, _vocbase, aql.str().c_str(),
|
arangodb::aql::Query query(false, _vocbase, aql.c_str(),
|
||||||
aql.str().size(), bindVars, nullptr,
|
aql.size(), bindVars, nullptr,
|
||||||
arangodb::aql::PART_MAIN);
|
arangodb::aql::PART_MAIN);
|
||||||
|
|
||||||
auto queryResult = query.execute(_queryRegistry);
|
auto queryResult = query.execute(_queryRegistry);
|
||||||
|
|
Loading…
Reference in New Issue