Skip to content

Commit bb855e6

Browse files
committed
Updated comment [skip ci]
1 parent 103ac50 commit bb855e6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hnswinsert.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,12 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns
379379
HnswElement neighborElement = HnswPtrAccess(base, hc->element);
380380
OffsetNumber offno = neighborElement->neighborOffno;
381381

382-
/* Get latest neighbors since they may have changed */
383-
/* Do not lock yet since selecting neighbors can take time */
382+
/*
383+
* Get latest neighbors since they may have changed. Do not lock
384+
* yet since selecting neighbors can take time. Could use
385+
* optimistic locking to retry if another update occurs before
386+
* getting exclusive lock.
387+
*/
384388
HnswLoadNeighbors(neighborElement, index, m);
385389

386390
/*

0 commit comments

Comments
 (0)