mirror of
https://github.com/hanzoai/sql-vector.git
synced 2026-10-01 00:37:19 +00:00
Hardened HnswLoadNeighborTids [skip ci]
(cherry picked from commit 87f925a13949d42623e05793ae9f4a2eadabb387)
This commit is contained in:
+1
-1
@@ -779,7 +779,7 @@ HnswLoadNeighborTids(HnswElement element, ItemPointerData *indextids, Relation i
|
||||
|
||||
/* Copy to minimize lock time */
|
||||
start = (element->level - lc) * m;
|
||||
memcpy(indextids, ntup->indextids + start, lm * sizeof(ItemPointerData));
|
||||
memcpy(indextids, ntup->indextids + start, mul_size(sizeof(ItemPointerData), lm));
|
||||
|
||||
UnlockReleaseBuffer(buf);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user