pgvector.git / summary / log / commit / refs

commit    2db1b19644182a8d48ef8d4fca63bfd8f290f0d4
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Oct 28 04:07:22 2024 +0000

    Use greater than [skip ci]


src/hnswscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnswscan.c b/src/hnswscan.c index 445b7ae6..156e5e8b 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -249,7 +249,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) so->w = lappend(so->w, HnswGetSearchCandidate(w_node, pairingheap_remove_first(so->discarded))); } /* Prevent scans from consuming too much memory */ - else if (MemoryContextMemAllocated(so->tmpCtx, false) >= so->maxMemory) + else if (MemoryContextMemAllocated(so->tmpCtx, false) > so->maxMemory) { if (pairingheap_is_empty(so->discarded)) { [parent: 305d62146ea1]