Changeset: 8f0e96e7b58a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8f0e96e7b58a
Modified Files:
        gdk/gdk_bat.c
Branch: default
Log Message:

One more test we can do to assure BAT consistency.


diffs (11 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -2812,6 +2812,7 @@ BATassertHeadProps(BAT *b)
        q = BUNlast(b);
 
        assert(b->H->heap.size <= b->H->heap.maxsize);
+       assert(b->H->heap.free >= headsize(b, BUNlast(b)));
        if (b->htype != TYPE_void) {
                assert(b->batCount <= b->batCapacity);
                assert(b->H->heap.size >= b->H->heap.free);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to