pgvector.git / summary / log / commit / refs
commit bd409f0c6a6aeaf7ee980830dac1aa59ba9c8587
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Apr 23 02:22:09 2024 +0000
Moved HnswGetType call [skip ci]
src/hnswinsert.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/hnswinsert.c b/src/hnswinsert.c
index 5d6e0618..50181ea7 100644
--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -614,13 +614,12 @@ HnswInsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_ti
Datum value;
FmgrInfo *normprocinfo;
Oid collation = index->rd_indcollation[0];
- HnswType type = HnswGetType(index);
/* Detoast once for all calls */
value = PointerGetDatum(PG_DETOAST_DATUM(values[0]));
/* Check value */
- HnswCheckValue(value, type);
+ HnswCheckValue(value, HnswGetType(index));
/* Normalize if needed */
normprocinfo = HnswOptionalProcInfo(index, HNSW_NORM_PROC);
[parent: 1994fd003aae]