Changeset: c9cc4e541c05 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9cc4e541c05
Modified Files:
        monetdb5/extras/rdf/rdf_shredder.mx
Branch: rdf
Log Message:

Fix the bug in post_processing function of rdf_shredder when loading 
small/sorted rdf triples.

In this case, BATleftfetchjoin does not return a new BAT, but increases 
physical ref to an existing BAT.

- Replace BBPreclaim by BBPunfix


diffs (16 lines):

diff --git a/monetdb5/extras/rdf/rdf_shredder.mx 
b/monetdb5/extras/rdf/rdf_shredder.mx
--- a/monetdb5/extras/rdf/rdf_shredder.mx
+++ b/monetdb5/extras/rdf/rdf_shredder.mx
@@ -476,9 +476,9 @@ post_processing (parserData *pdata)
        graph[O_sort] = BATmirror(BATmark(BATmirror(graph[O_sort]), 0));
 
        /* free memory */
-       BBPreclaim(S);
-       BBPreclaim(P);
-       BBPreclaim(O);
+       BBPunfix(S->batCacheid);
+       BBPunfix(P->batCacheid);
+       BBPunfix(O->batCacheid);
 
        return MAL_SUCCEED;
 
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to