mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 14:20:57 +08:00
Zero memory for each element
This commit is contained in:
@@ -267,6 +267,9 @@ WriteNeighborTuples(HnswBuildState * buildstate)
|
||||
/* Update iterator */
|
||||
iter = e->next;
|
||||
|
||||
/* Zero memory for each element */
|
||||
MemSet(ntup, 0, HNSW_TUPLE_ALLOC_SIZE);
|
||||
|
||||
/* Can take a while, so ensure we can interrupt */
|
||||
/* Needs to be called when no buffer locks are held */
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
||||
Reference in New Issue
Block a user