Changeset: c52bf280eab5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c52bf280eab5
Modified Files:
        monetdb5/modules/mal/tokenizer.c
Branch: viewless
Log Message:

tokenizer without VIEWcreate


diffs (24 lines):

diff --git a/monetdb5/modules/mal/tokenizer.c b/monetdb5/modules/mal/tokenizer.c
--- a/monetdb5/modules/mal/tokenizer.c
+++ b/monetdb5/modules/mal/tokenizer.c
@@ -590,17 +590,14 @@ TKNZRgetIndex(bat *r)
 str
 TKNZRgetLevel(bat *r, int *level)
 {
-       BAT* view;
        if (TRANS == NULL)
                throw(MAL, "tokenizer", "no tokenizer store open");
        if (*level < 0 || *level >= tokenDepth)
                throw(MAL, "tokenizer.getLevel", OPERATION_FAILED " illegal 
level");
-       view = VIEWcreate(tokenBAT[*level].val->hseqbase, tokenBAT[*level].val);
-       if (view == NULL)
-               throw(MAL, "tokenizer.getLevel", SQLSTATE(HY001) 
MAL_MALLOC_FAIL);
-       *r = view->batCacheid;
 
-       BBPkeepref(*r);
+       *r = tokenBAT[*level].val->batCacheid;
+
+       BBPretain(*r);
        return MAL_SUCCEED;
 }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to