Skip to content

Commit ca2be5b

Browse files
committed
Updated comment [skip ci]
1 parent 0e1de45 commit ca2be5b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hnswinsert.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,9 @@ HnswInsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_ti
516516
element->vec = DatumGetVector(value);
517517

518518
/*
519-
* Get a shared lock for the duration of the insert. Use a page lock so it
520-
* does not interfere with buffer lock (or reads when vacuuming).
519+
* Get a shared lock. This allows vacuum to ensure no in-flight inserts
520+
* before repairing graph. Use a page lock so it does not interfere with
521+
* buffer lock (or reads when vacuuming).
521522
*/
522523
LockPage(index, HNSW_UPDATE_LOCK, lockmode);
523524

0 commit comments

Comments
 (0)