mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 00:08:30 +00:00
Moved sort state reset [skip ci]
This commit is contained in:
1 parent
461c8813ab
commit
fc18b30967
1 file changed
+2
-2
+2
-2
@@ -328,6 +328,8 @@ AddScanItem(IvfflatScanOpaque so, double distance, ItemPointer heaptid)
|
||||
{
|
||||
if (so->sortstate == NULL)
|
||||
InitScanSortState(so);
|
||||
else
|
||||
tuplesort_reset(so->sortstate);
|
||||
|
||||
/* Move items to sort */
|
||||
for (int i = 0; i < heap->length; i++)
|
||||
@@ -381,8 +383,6 @@ GetScanItems(IndexScanDesc scan, Datum value)
|
||||
|
||||
so->useHeap = true;
|
||||
BinaryHeapReset(&so->itemsHeap);
|
||||
if (so->sortstate != NULL)
|
||||
tuplesort_reset(so->sortstate);
|
||||
|
||||
/* Search closest probes lists */
|
||||
while (so->listsVisited < so->listsCount && batchProbes++ < so->probes)
|
||||
|
||||
Reference in new issue
Block a user