Changeset: 87dc66ea7826 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=87dc66ea7826
Modified Files:
        gdk/gdk_hash.c
Branch: shrinkHASHtable
Log Message:

re-added accidetally lost HASHnew()


diffs (17 lines):

diff --git a/gdk/gdk_hash.c b/gdk/gdk_hash.c
--- a/gdk/gdk_hash.c
+++ b/gdk/gdk_hash.c
@@ -419,6 +419,13 @@ BAThash_impl(BAT *b, BAT *s, const char 
 
        nslots = 0;
        p = 0;
+       HEAPfree(&h->heap, true);
+       /* create the hash structures */
+       if (HASHnew(h, ATOMtype(b->ttype), s ? cnt : BATcapacity(b),
+                   mask, cnt) != GDK_SUCCEED) {
+               GDKfree(h);
+               return NULL;
+       }
        hnil = HASHnil(h);
 
        /* build the hashtable with the full-size mask */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to