mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 15:16:54 +08:00
Simplified logic
This commit is contained in:
@@ -194,10 +194,7 @@ GetNextTuple(Tuplesortstate *sortstate, TupleDesc tupdesc, TupleTableSlot *slot,
|
|||||||
ItemPointerSet(&(*itup)->t_tid, tupblk, tupoff);
|
ItemPointerSet(&(*itup)->t_tid, tupblk, tupoff);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
*list = -1;
|
*list = -1;
|
||||||
*itup = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -258,9 +255,6 @@ InsertTuples(Relation index, IvfflatBuildState * buildstate, ForkNumber forkNum)
|
|||||||
/* Set the start and insert pages */
|
/* Set the start and insert pages */
|
||||||
IvfflatUpdateList(index, state, buildstate->listInfo[i], insertPage, startPage, forkNum);
|
IvfflatUpdateList(index, state, buildstate->listInfo[i], insertPage, startPage, forkNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itup != NULL)
|
|
||||||
pfree(itup);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user