Removed more vector-specific code from IVFFlat [skip ci]

This commit is contained in:
Andrew Kane
2024-04-11 14:05:41 -07:00
parent 7e8be16e37
commit bbfe1e8b61

View File

@@ -482,7 +482,7 @@ CreateListPages(Relation index, VectorArray centers, int dimensions,
Size listSize; Size listSize;
IvfflatList list; IvfflatList list;
listSize = MAXALIGN(IVFFLAT_LIST_SIZE(VECTOR_SIZE(dimensions))); listSize = MAXALIGN(IVFFLAT_LIST_SIZE(centers->itemsize));
list = palloc0(listSize); list = palloc0(listSize);
buf = IvfflatNewBuffer(index, forkNum); buf = IvfflatNewBuffer(index, forkNum);