From 5d86b177abcf6421c9fbf3cb80c955bf8fe1abd3 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 24 Aug 2024 20:56:33 -0700 Subject: [PATCH] Fixed -DIVFFLAT_MEMORY [skip ci] --- src/ivfkmeans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index ab8f7d4..003d55d 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -327,7 +327,7 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers, const Ivff newCenters->length = numCenters; #ifdef IVFFLAT_MEMORY - ShowMemoryUsage(MemoryContextGetParent(CurrentMemoryContext)); + ShowMemoryUsage(MemoryContextGetParent(CurrentMemoryContext), totalSize); #endif /* Pick initial centers */