diff --git a/src/ivfscan.c b/src/ivfscan.c index 9f09dc74..d67290b8 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -135,6 +135,8 @@ GetScanLists(IndexScanDesc scan, Datum value) UnlockReleaseBuffer(cbuf); } + Assert(so->listsCount == so->maxProbes); + qsort(so->lists, so->listsCount, sizeof(IvfflatScanList), CompareListsSort); }