pgvector.git / summary / log / commit / refs
commit a8e257e1f1aaf4c8c9019dcf4ac41bea98a41fff
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Aug 29 05:02:48 2023 +0000
Added comments [skip ci]
src/hnswscan.c | 1 +
src/ivfscan.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/hnswscan.c b/src/hnswscan.c
index dba3ca95..742779a7 100644
--- a/src/hnswscan.c
+++ b/src/hnswscan.c
@@ -185,6 +185,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
scan->xs_ctup.t_self = *tid;
#endif
+ /* Unpin buffer */
if (BufferIsValid(so->buf))
ReleaseBuffer(so->buf);
diff --git a/src/ivfscan.c b/src/ivfscan.c
index 6703120a..340b5196 100644
--- a/src/ivfscan.c
+++ b/src/ivfscan.c
@@ -343,6 +343,7 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
scan->xs_ctup.t_self = *tid;
#endif
+ /* Unpin buffer */
if (BufferIsValid(so->buf))
ReleaseBuffer(so->buf);
[parent: 391343230312]