mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 15:46:54 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -235,8 +235,12 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Locking ensures when neighbors are read, the elements they
|
* Locking ensures when neighbors are read, the elements they
|
||||||
* reference will not be marked as deleted (and replaced)
|
* reference will not be deleted (and replaced) during the
|
||||||
* during the iteration
|
* iteration.
|
||||||
|
*
|
||||||
|
* Elements loaded into memory on previous iterations may have
|
||||||
|
* been deleted (and replaced), so when reading neighbors, the
|
||||||
|
* element version must be checked.
|
||||||
*/
|
*/
|
||||||
LockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);
|
LockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user