mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-22 12:07:34 +08:00
Compare commits
1 Commits
hnsw-entry
...
hnsw-entry
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75cf54a1e2 |
@@ -437,8 +437,8 @@ InsertTupleInMemory(HnswBuildState * buildstate, HnswElement element)
|
|||||||
char *base = buildstate->hnswarea;
|
char *base = buildstate->hnswarea;
|
||||||
|
|
||||||
/* Wait if another process needs exclusive lock */
|
/* Wait if another process needs exclusive lock */
|
||||||
if (LWLockAcquireOrWait(entryWaitLock, LW_EXCLUSIVE))
|
LWLockAcquire(entryWaitLock, LW_EXCLUSIVE);
|
||||||
LWLockRelease(entryWaitLock);
|
LWLockRelease(entryWaitLock);
|
||||||
|
|
||||||
/* Get entry point */
|
/* Get entry point */
|
||||||
LWLockAcquire(entryLock, LW_SHARED);
|
LWLockAcquire(entryLock, LW_SHARED);
|
||||||
|
|||||||
Reference in New Issue
Block a user