Changeset: fbbff91f89da for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fbbff91f89da
Modified Files:
monetdb5/modules/mal/mat.c
Branch: Feb2013
Log Message:
fixing changeset 98e4b2ac3e5c & bug 3214: extend vheap of result, not vheap of
input
diffs (15 lines):
diff --git a/monetdb5/modules/mal/mat.c b/monetdb5/modules/mal/mat.c
--- a/monetdb5/modules/mal/mat.c
+++ b/monetdb5/modules/mal/mat.c
@@ -157,9 +157,9 @@ MATpackIncrement(Client cntxt, MalBlkPtr
if (bn == NULL)
throw(MAL, "mat.pack", MAL_MALLOC_FAIL);
/* allocate enough space for the strings */
- if ( b->T->vheap ){
+ if ( b->T->vheap && bn->T->vheap ){
newsize = b->T->vheap->size * pieces;
- if (HEAPextend(b->T->vheap, newsize) < 0)
+ if (HEAPextend(bn->T->vheap, newsize) < 0)
throw(MAL, "mat.pack", MAL_MALLOC_FAIL);
}
BATsettrivprop(bn);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list