mirror of https://gitee.com/bigwinds/arangodb
add missing ifdefs (#5499)
This commit is contained in:
parent
9660dad86e
commit
c41b056209
|
@ -263,7 +263,9 @@ double DistributeNode::estimateCost(size_t& nrItems) const {
|
|||
case SHORTEST_PATH:
|
||||
return castTo<GraphNode const*>(node)->collection();
|
||||
case SCATTER:
|
||||
#ifdef USE_IRESEARCH
|
||||
case SCATTER_IRESEARCH_VIEW:
|
||||
#endif
|
||||
return nullptr; // diamond boundary
|
||||
default:
|
||||
node = node->getFirstDependency();
|
||||
|
|
|
@ -146,10 +146,12 @@ Collection const* EngineInfoContainerDBServer::EngineInfo::collection() const no
|
|||
return _collection;
|
||||
}
|
||||
|
||||
#ifdef USE_IRESEARCH
|
||||
LogicalView const* EngineInfoContainerDBServer::EngineInfo::view() const noexcept {
|
||||
TRI_ASSERT(ExecutionNode::ENUMERATE_IRESEARCH_VIEW == _type);
|
||||
return _view;
|
||||
}
|
||||
#endif
|
||||
|
||||
void EngineInfoContainerDBServer::EngineInfo::serializeSnippet(
|
||||
Query* query,
|
||||
|
|
|
@ -108,7 +108,9 @@ class EngineInfoContainerDBServer {
|
|||
return _type;
|
||||
}
|
||||
|
||||
#ifdef USE_IRESEARCH
|
||||
LogicalView const* view() const noexcept;
|
||||
#endif
|
||||
|
||||
private:
|
||||
EngineInfo(EngineInfo&) = delete;
|
||||
|
|
Loading…
Reference in New Issue