Changeset: 6a8d0c1a169d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6a8d0c1a169d
Modified Files:
        gdk/gdk_batop.c
Branch: Jun2016
Log Message:

Don't remove hash if we need it for keeping values unique.


diffs (17 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -431,8 +431,11 @@ BATappend(BAT *b, BAT *n, bit force)
                        return GDK_FAIL;
        }
 
-       /* if growing too much, remove the hash, else we maintain it */
-       if (BATcheckhash(b) && (2 * b->T->hash->mask) < (BATcount(b) + sz)) {
+       /* if growing too much (and we don't need the hash for
+        * uniqueness), remove the hash, else we maintain it */
+       if (BATcheckhash(b) &&
+           (2 * b->T->hash->mask) < (BATcount(b) + sz) &&
+           (b->tkey & BOUND2BTRUE) == 0) {
                HASHremove(b);
        }
        if (b->T->hash != NULL ||
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to