8000 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel · thurt/arangodb@cbcf042 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbcf042

Browse files
committed
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2 parents a6a0484 + 6bc0f49 commit cbcf042

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arangod/Aql/TraversalNode.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,10 @@ double TraversalNode::estimateCost (size_t& nrItems) const {
512512
}
513513
}
514514
}
515-
nrItems = incoming * pow(expectedEdgesPerDepth, _maxDepth);
515+
nrItems = static_cast<size_t>(incoming * pow(expectedEdgesPerDepth, _maxDepth));
516+
if (nrItems == 0 && incoming > 0) {
517+
nrItems = 1; // min value
518+
}
516519
return depCost + nrItems;
517520
}
518521

0 commit comments

Comments
 (0)
0