mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 07:06:57 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -233,13 +233,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/* TODO Figure out locking */
|
||||||
* Ensure vacuum does not mark tuples as deleted during an
|
|
||||||
* iteration. This ensures indextids in NeighborTuple point to
|
|
||||||
* the correct element without needing version for each one.
|
|
||||||
* SearchLayer must load neighbor elements in the same
|
|
||||||
* iteration as reading NeighborTuple for this to work.
|
|
||||||
*/
|
|
||||||
LockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);
|
LockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);
|
||||||
|
|
||||||
HnswBench("scan iteration", so->w = ResumeScanItems(scan));
|
HnswBench("scan iteration", so->w = ResumeScanItems(scan));
|
||||||
|
|||||||
Reference in New Issue
Block a user