Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb855e6

Browse files
committed
Updated comment [skip ci]
1 parent103ac50 commitbb855e6

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
HnswElementneighborElement=HnswPtrAccess(base,hc->element);
380380
OffsetNumberoffno=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)

[8]ページ先頭

©2009-2025 Movatter.jp