1
0
Fork 0

Fixed shutdown of Traversal Blocks in Cluster

This commit is contained in:
Michael Hackstein 2016-09-08 13:37:29 +02:00
parent 0262d0e284
commit 1625260f4e
2 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ int TraversalBlock::shutdown(int errorCode) {
}
}
return TRI_ERROR_NO_ERROR;
return ExecutionBlock::shutdown(errorCode);
DEBUG_END_BLOCK();
}

View File

@ -127,6 +127,7 @@ TraverserEngine::TraverserEngine(TRI_vocbase_t* vocbase,
}
TraverserEngine::~TraverserEngine() {
/*
auto resolver = _trx->resolver();
// TODO Do we need this or will delete trx do this already?
for (auto const& shard : _locked) {
@ -141,6 +142,7 @@ TraverserEngine::~TraverserEngine() {
<< TRI_errno_string(res);
}
}
*/
if (_trx) {
_trx->commit();
}