mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Fixed CI
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
|
#include "catalog/index.h"
|
||||||
#include "ivfflat.h"
|
#include "ivfflat.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
@@ -407,6 +408,7 @@ void
|
|||||||
IvfflatKmeans(IvfflatBuildState * buildstate)
|
IvfflatKmeans(IvfflatBuildState * buildstate)
|
||||||
{
|
{
|
||||||
int numSamples;
|
int numSamples;
|
||||||
|
Size totalSize;
|
||||||
|
|
||||||
/* Target 10 samples per list, with at least 10000 samples */
|
/* Target 10 samples per list, with at least 10000 samples */
|
||||||
/* The number of samples has a large effect on index build time */
|
/* The number of samples has a large effect on index build time */
|
||||||
@@ -419,7 +421,7 @@ IvfflatKmeans(IvfflatBuildState * buildstate)
|
|||||||
numSamples = 1;
|
numSamples = 1;
|
||||||
|
|
||||||
/* Calculate total size */
|
/* Calculate total size */
|
||||||
Size totalSize = VECTOR_ARRAY_SIZE(numSamples, buildstate->dimensions);
|
totalSize = VECTOR_ARRAY_SIZE(numSamples, buildstate->dimensions);
|
||||||
|
|
||||||
/* Check memory requirements */
|
/* Check memory requirements */
|
||||||
/* Add one to error message to ceil */
|
/* Add one to error message to ceil */
|
||||||
|
|||||||
Reference in New Issue
Block a user