pgvector.git / summary / log / commit / refs

commit    87a1b3365e201def6042c07cc5eb32b0ff9f7a77
Author:   Andrew Kane <andrew@ankane.org>
Date:     Tue May 25 01:58:11 2021 +0000

    Simplified logic


src/ivfbuild.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index 50ea461e..ce585afa 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -194,10 +194,7 @@ GetNextTuple(Tuplesortstate *sortstate, TupleDesc tupdesc, TupleTableSlot *slot, ItemPointerSet(&(*itup)->t_tid, tupblk, tupoff); } else - { *list = -1; - *itup = NULL; - } } /* @@ -258,9 +255,6 @@ InsertTuples(Relation index, IvfflatBuildState * buildstate, ForkNumber forkNum) /* Set the start and insert pages */ IvfflatUpdateList(index, state, buildstate->listInfo[i], insertPage, startPage, forkNum); } - - if (itup != NULL) - pfree(itup); } /* [parent: e9a762223b59]