mirror of https://gitee.com/bigwinds/arangodb
assert costs are positive
This commit is contained in:
parent
dbb4ef6e41
commit
822c5daa32
|
@ -355,6 +355,7 @@ namespace triagens {
|
|||
double getCost () {
|
||||
if (_estimatedCost == 0.0) {
|
||||
_estimatedCost = estimateCost();
|
||||
TRI_ASSERT(_estimatedCost >= 0.0);
|
||||
}
|
||||
return _estimatedCost;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue