mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 23:56:55 +08:00
Wait for selects to complete
This commit is contained in:
@@ -404,6 +404,10 @@ MarkDeleted(HnswVacuumState * vacuumstate)
|
||||
Relation index = vacuumstate->index;
|
||||
BufferAccessStrategy bas = vacuumstate->bas;
|
||||
|
||||
/* Wait for selects to complete */
|
||||
LockPage(index, HNSW_HEAD_BLKNO, ExclusiveLock);
|
||||
UnlockPage(index, HNSW_HEAD_BLKNO, ExclusiveLock);
|
||||
|
||||
while (BlockNumberIsValid(blkno))
|
||||
{
|
||||
Buffer buf;
|
||||
|
||||
Reference in New Issue
Block a user