Changeset: 610572053204 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=610572053204 Modified Files: gdk/gdk_heap.c Branch: Feb2013 Log Message:
Fix for one of the problems in bug 3323. When going through the heap cache and the first heap is smaller than requested, we want to match any heap that is at least as large as requested. diffs (12 lines): diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c --- a/gdk/gdk_heap.c +++ b/gdk/gdk_heap.c @@ -162,7 +162,7 @@ HEAPcacheFind(size_t *maxsz, char *fn, s * largest smaller than requested */ for (i = 0; i < hc->used; i++) { if ((hc->hc[i].maxsz >= *maxsz && - (e == NULL || hc->hc[i].maxsz < cursz)) || + (e == NULL || hc->hc[i].maxsz < cursz || cursz < *maxsz)) || (hc->hc[i].maxsz < *maxsz && cursz < *maxsz && hc->hc[i].maxsz > cursz)) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list