From b3dfd925fad9f00b4caba09624dfffe6dd08cf10 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 17 Nov 2026 13:41:38 -0800 Subject: [PATCH] Added assertion to GetScanLists [skip ci] --- src/ivfscan.c | 2 ++ 1 file changed, 2 insertions(+) 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); }