Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7253

Modified Files:
      Tag: GDK-2
        gdk_bat.mx 
Log Message:
When setting the count in a void,void bat, also set capacity.
Assert that capacity is large enough.


Index: gdk_bat.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_bat.mx,v
retrieving revision 1.181.4.10
retrieving revision 1.181.4.11
diff -u -d -r1.181.4.10 -r1.181.4.11
--- gdk_bat.mx  15 Aug 2007 13:07:06 -0000      1.181.4.10
+++ gdk_bat.mx  15 Aug 2007 15:50:17 -0000      1.181.4.11
@@ -1965,7 +1965,10 @@
        b->batCount = cnt;                      
        b->batDirtydesc = TRUE;                         
        b->H->heap.free = headsize(b,BUNfirst(b)+cnt);
-       b->T->heap.free = tailsize(b,BUNfirst(b)+cnt); 
+       b->T->heap.free = tailsize(b,BUNfirst(b)+cnt);
+       if (b->H->type == TYPE_void && b->T->type == TYPE_void)
+               b->batCapacity = cnt;
+       assert(b->batCapacity >= cnt);
 }
 
 @-


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to