mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 15:46:54 +08:00
Moved VECTOR_SIZE out of IVFFLAT_LIST_SIZE [skip ci]
This commit is contained in:
@@ -482,7 +482,7 @@ CreateListPages(Relation index, VectorArray centers, int dimensions,
|
||||
Size listSize;
|
||||
IvfflatList list;
|
||||
|
||||
listSize = MAXALIGN(IVFFLAT_LIST_SIZE(dimensions));
|
||||
listSize = MAXALIGN(IVFFLAT_LIST_SIZE(VECTOR_SIZE(dimensions)));
|
||||
list = palloc0(listSize);
|
||||
|
||||
buf = IvfflatNewBuffer(index, forkNum);
|
||||
|
||||
Reference in New Issue
Block a user