mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-07 05:00:56 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -516,8 +516,9 @@ HnswInsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_ti
|
|||||||
element->vec = DatumGetVector(value);
|
element->vec = DatumGetVector(value);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get a shared lock for the duration of the insert. Use a page lock so it
|
* Get a shared lock. This allows vacuum to ensure no in-flight inserts
|
||||||
* does not interfere with buffer lock (or reads when vacuuming).
|
* before repairing graph. Use a page lock so it does not interfere with
|
||||||
|
* buffer lock (or reads when vacuuming).
|
||||||
*/
|
*/
|
||||||
LockPage(index, HNSW_UPDATE_LOCK, lockmode);
|
LockPage(index, HNSW_UPDATE_LOCK, lockmode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user