diff --git a/arangod/Aql/EngineInfoContainerCoordinator.cpp b/arangod/Aql/EngineInfoContainerCoordinator.cpp index 9f7f66cb73..bf61479036 100644 --- a/arangod/Aql/EngineInfoContainerCoordinator.cpp +++ b/arangod/Aql/EngineInfoContainerCoordinator.cpp @@ -121,11 +121,12 @@ void EngineInfoContainerCoordinator::addNode(ExecutionNode* node) { TRI_ASSERT( node->getType() != ExecutionNode::INDEX && node->getType() != ExecutionNode::ENUMERATE_COLLECTION -#ifdef USE_IRESEARCH - && node->getType() != ExecutionNode::ENUMERATE_IRESEARCH_VIEW -#endif ); +#ifdef USE_IRESEARCH + TRI_ASSERT(node->getType() != ExecutionNode::ENUMERATE_IRESEARCH_VIEW); +#endif + TRI_ASSERT(!_engines.empty()); TRI_ASSERT(!_engineStack.empty()); size_t idx = _engineStack.top();