1
0
Fork 0

fix compile warning

This commit is contained in:
jsteemann 2016-09-13 12:10:06 +02:00
parent 542699f8ff
commit 467f260400
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
////////////////////////////////////////////////////////////////////////////////
/// @brief Implementation of Traversal Execution Node
///
/// @file arangod/Aql/TraversalNode.cpp
@ -902,6 +903,9 @@ void TraversalNode::prepareOptions() {
info.idxHandles[0]);
TRI_ASSERT(res); // Right now we have an enforced edge index which will
// always fit.
if (!res) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "expected edge index not found");
}
// We now have to check if we need _from / _to inside the index lookup and which position
// it is used in. Such that the traverser can update the respective string value
@ -966,6 +970,10 @@ void TraversalNode::prepareOptions() {
info.idxHandles[0]);
TRI_ASSERT(res); // Right now we have an enforced edge index which will
// always fit.
if (!res) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "expected edge index not found");
}
// We now have to check if we need _from / _to inside the index lookup and which position
// it is used in. Such that the traverser can update the respective string value
// in-place