Changeset: ceeea5ff3286 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ceeea5ff3286
Modified Files:
        gdk/gdk_batop.c
Branch: Jul2021
Log Message:

Assert bat capacity must be greater or equal than the count after inserting a 
string BAT


diffs (11 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -398,6 +398,7 @@ insert_string_bat(BAT *b, BAT *n, struct
                        r++;
                }
        }
+       assert(b->batCapacity >= b->batCount);
        b->theap->dirty = true;
        /* maintain hash */
        for (r = oldcnt, cnt = BATcount(b); b->thash && r < cnt; r++) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to