Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31459
Modified Files:
Tag: GDK-2
gdk_storage.mx
Log Message:
Set batCapacity after loading the heap.
Index: gdk_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_storage.mx,v
retrieving revision 1.128.2.5
retrieving revision 1.128.2.6
diff -u -d -r1.128.2.5 -r1.128.2.6
--- gdk_storage.mx 14 Aug 2007 11:31:42 -0000 1.128.2.5
+++ gdk_storage.mx 15 Aug 2007 13:07:55 -0000 1.128.2.6
@@ -574,6 +574,7 @@
if (ret < 0) {
return NULL;
}
+ b->batCapacity = b->H->heap.size >> b->H->shift;
} else {
b->H->heap.base = NULL;
}
@@ -584,6 +585,9 @@
HEAPfree(&b->H->heap);
return NULL;
}
+ if (b->htype == TYPE_void)
+ b->batCapacity = b->T->heap.size >> b->T->shift;
+ assert(b->batCapacity == (b->T->heap.size >> b->T->shift));
} else {
b->T->heap.base = NULL;
}
-------------------------------------------------------------------------
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