Changeset: 9deed668ac29 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9deed668ac29
Modified Files:
        monetdb5/modules/atoms/str.c
Branch: default
Log Message:

Current size of lists row ids is not enough


diffs (12 lines):

diff --git a/monetdb5/modules/atoms/str.c b/monetdb5/modules/atoms/str.c
--- a/monetdb5/modules/atoms/str.c
+++ b/monetdb5/modules/atoms/str.c
@@ -2155,7 +2155,7 @@ ngrams_create(size_t cnt, size_t ng_sz)
                ng->sigs = GDKmalloc(cnt * sizeof(NGRAM_TYPE));
                ng->histogram = GDKmalloc(ng_sz * sizeof(unsigned));
                ng->lists = GDKmalloc(ng_sz * sizeof(unsigned));
-               ng->rids = GDKmalloc(NGRAM_MULTIPLE * cnt * sizeof(unsigned));
+               ng->rids = GDKmalloc(2 * NGRAM_MULTIPLE * cnt * 
sizeof(unsigned));
        }
        if (!ng || !ng->idx || !ng->sigs || !ng->histogram || !ng->lists || 
!ng->rids) {
                ngrams_destroy(ng);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to