Use greater than [skip ci]

This commit is contained in:
Andrew Kane
2024-10-27 21:07:22 -07:00
parent d2c79d04d5
commit 5aff0d203e
+1 -1
View File
@@ -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))
{