From a77340d40b8252419074651359fe2fe7a9efa9ae Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 12 Feb 2022 23:18:34 -0800 Subject: [PATCH] Fixed CI --- src/ivfkmeans.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index ec8dfab..3ae7b2c 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -2,6 +2,7 @@ #include +#include "catalog/index.h" #include "ivfflat.h" #include "miscadmin.h" #include "storage/bufmgr.h" @@ -407,6 +408,7 @@ void IvfflatKmeans(IvfflatBuildState * buildstate) { int numSamples; + Size totalSize; /* Target 10 samples per list, with at least 10000 samples */ /* The number of samples has a large effect on index build time */ @@ -419,7 +421,7 @@ IvfflatKmeans(IvfflatBuildState * buildstate) numSamples = 1; /* Calculate total size */ - Size totalSize = VECTOR_ARRAY_SIZE(numSamples, buildstate->dimensions); + totalSize = VECTOR_ARRAY_SIZE(numSamples, buildstate->dimensions); /* Check memory requirements */ /* Add one to error message to ceil */