mirror of https://gitee.com/bigwinds/arangodb
Fix compilation of new estimation function.
This commit is contained in:
parent
d889974ad4
commit
ff3a999348
|
@ -1538,7 +1538,8 @@ void LimitNode::toJsonHelper (triagens::basics::Json& nodes,
|
||||||
double LimitNode::estimateCost (size_t& nrItems) const {
|
double LimitNode::estimateCost (size_t& nrItems) const {
|
||||||
size_t incoming = 0;
|
size_t incoming = 0;
|
||||||
double depCost = _dependencies.at(0)->getCost(incoming);
|
double depCost = _dependencies.at(0)->getCost(incoming);
|
||||||
nrItems = std::min(_limit, std::max(0, incoming - _offset));
|
nrItems = (std::min)(_limit, (std::max)(static_cast<size_t>(0),
|
||||||
|
incoming - _offset));
|
||||||
return depCost + nrItems;
|
return depCost + nrItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue