mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Fixed assertion
This commit is contained in:
@@ -210,7 +210,7 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
|
|||||||
*indexCorrelation = costs.indexCorrelation;
|
*indexCorrelation = costs.indexCorrelation;
|
||||||
*indexPages = costs.numIndexPages;
|
*indexPages = costs.numIndexPages;
|
||||||
|
|
||||||
Assert(*indexStartupCost > 0);
|
Assert(*indexStartupCost >= 0);
|
||||||
Assert(*indexTotalCost >= *indexStartupCost);
|
Assert(*indexTotalCost >= *indexStartupCost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user