mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 16:46:54 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -233,7 +233,11 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* TODO Figure out locking */
|
/*
|
||||||
|
* Locking ensures when neighbors are read, the elements they
|
||||||
|
* reference will not be marked as deleted (and replaced)
|
||||||
|
* during the iteration
|
||||||
|
*/
|
||||||
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