From 4aa3ba0d598e56bb9535e00f8ccd0766d55bd059 Mon Sep 17 00:00:00 2001 From: Andrey Abramov Date: Wed, 2 May 2018 20:15:47 +0300 Subject: [PATCH] fix undefined macro expansion (#5246) --- arangod/Aql/EngineInfoContainerCoordinator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();