From 12015dbe53cba372bb47491a5ba6ff8b0cc2984d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 22 Sep 2024 09:18:25 -0700 Subject: [PATCH] Updated comment [skip ci] --- src/hnswscan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hnswscan.c b/src/hnswscan.c index cfad6f7..4e87d7f 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -237,6 +237,8 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) * Ensure vacuum does not mark tuples as deleted during an * iteration. This ensures indextids in NeighborTuple point to * the correct element without needing version for each one. + * SearchLayer must load neighbor elements in the same + * iteration as reading NeighborTuple for this to work. */ LockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);