From f4288f86735cbb1d4a7ed126d4b2744f688c6db3 Mon Sep 17 00:00:00 2001 From: wangjingyuan <1577039175@qq.com> Date: Thu, 17 Apr 2025 19:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=88=9B=E5=BB=BAivfflat?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E6=97=B6=EF=BC=8Clists=E8=BE=83=E5=A4=A7?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=86=85=E5=AD=98=E5=88=86=E9=85=8D=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E5=88=9B=E5=BB=BA=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/storage/access/datavec/ivfkmeans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/storage/access/datavec/ivfkmeans.cpp b/src/gausskernel/storage/access/datavec/ivfkmeans.cpp index c07f7c5122..2538a62c16 100644 --- a/src/gausskernel/storage/access/datavec/ivfkmeans.cpp +++ b/src/gausskernel/storage/access/datavec/ivfkmeans.cpp @@ -325,7 +325,7 @@ static void ElkanKmeans(Relation index, VectorArray samples, VectorArray centers lowerBound = (float *)MemoryContextAllocExtended(CurrentMemoryContext, lowerBoundSize, MCXT_ALLOC_HUGE); upperBound = (float *)palloc(upperBoundSize); s = (float *)palloc(sSize); - halfcdist = (float *)palloc_extended(halfcdistSize, MCXT_ALLOC_HUGE); + halfcdist = (float *)MemoryContextAllocExtended(CurrentMemoryContext, halfcdistSize, MCXT_ALLOC_HUGE); newcdist = (float *)palloc(newcdistSize); /* Initialize new centers */ -- Gitee