pgvector.git / summary / log / commit / refs

commit    a532d82bda6609204a73b4b656fa1751d47684d5
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Nov 18 03:52:46 2022 +0000

    Use palloc_extended for halfcdist


src/ivfkmeans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index e814f545..fc12ff5d 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -243,7 +243,7 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers) lowerBound = palloc_extended(lowerBoundSize, MCXT_ALLOC_HUGE); upperBound = palloc(upperBoundSize); s = palloc(sSize); - halfcdist = palloc(halfcdistSize); + halfcdist = palloc_extended(halfcdistSize, MCXT_ALLOC_HUGE); newcdist = palloc(newcdistSize); newCenters = VectorArrayInit(numCenters, dimensions); [parent: ccec96ba54f2]