mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Added alignment check to ensure consistency with PageIndexTupleOverwrite
This commit is contained in:
@@ -78,6 +78,10 @@ HnswFreeOffset(Relation index, Buffer buf, Page page, HnswElement element, Size
|
||||
|
||||
nitemid = PageGetItemId(*npage, neighborOffno);
|
||||
|
||||
/* Ensure aligned for space check */
|
||||
Assert(etupSize == MAXALIGN(etupSize));
|
||||
Assert(ntupSize == MAXALIGN(ntupSize));
|
||||
|
||||
/*
|
||||
* Calculate free space individually since tuples are overwritten
|
||||
* individually (in separate calls to PageIndexTupleOverwrite)
|
||||
|
||||
Reference in New Issue
Block a user