Changeset: 523065d8c938 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/523065d8c938
Modified Files:
monetdb5/modules/mal/heapn.c
Branch: pp_hashjoin
Log Message:
fix offset problem in grouped heap implementation
diffs (20 lines):
diff --git a/monetdb5/modules/mal/heapn.c b/monetdb5/modules/mal/heapn.c
--- a/monetdb5/modules/mal/heapn.c
+++ b/monetdb5/modules/mal/heapn.c
@@ -963,6 +963,7 @@ heap_destroy( heapn *h)
if (h->grouped) {
BBPreclaim(h->grpb);
BBPreclaim(h->usedb);
+ BBPreclaim(h->fullb);
}
GDKfree(h);
}
@@ -1811,7 +1812,7 @@ HEAPtopn(Client cntxt, MalBlkPtr m, MalS
for(i = 0; i<offset; i++) \
(void) gheap_del_##T(hp, g); \
j += hp->useda[g];
\
- for(; hp->useda[g]; i++) { \
+ for(i = 0; hp->useda[g]; i++) { \
rp[j-(i+1)] = pos[0]; \
(void) gheap_del_##T(hp, g); \
}
\
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]