1
0
Fork 0

assert costs are positive

This commit is contained in:
Jan Steemann 2014-09-01 15:03:23 +02:00
parent dbb4ef6e41
commit 822c5daa32
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,7 @@ namespace triagens {
double getCost () {
if (_estimatedCost == 0.0) {
_estimatedCost = estimateCost();
TRI_ASSERT(_estimatedCost >= 0.0);
}
return _estimatedCost;
};