From a532d82bda6609204a73b4b656fa1751d47684d5 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 17 Nov 2022 19:52:46 -0800 Subject: [PATCH] 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 e814f54..fc12ff5 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);