Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1121/src/modules/plain
Modified Files:
Tag: GDK-2
bat.mx
Log Message:
Got rid of macro batLview (just be explicit).
Split BATrestricted into BAThrestricted and BATtrestricted (since
columns can come from different parents).
parentid now always refers to the BAT whose head column the relevant
column is a view on. In other words, it can be negative which means
that the view is on the head of the reverse(), or the tail of the
original. In yet other words, the view is always based on the head of
BBP_cache(...->parentid).
Fixed various issues rising from these changes.
Typo: writeable -> writable.
Approved availability test.
Index: bat.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/bat.mx,v
retrieving revision 1.15.2.7
retrieving revision 1.15.2.8
diff -u -d -r1.15.2.7 -r1.15.2.8
--- bat.mx 15 Aug 2007 15:51:45 -0000 1.15.2.7
+++ bat.mx 17 Aug 2007 08:50:20 -0000 1.15.2.8
@@ -2068,10 +2068,12 @@
BBPcacheit(bn);
if (mmappath) {
/* if copy-on-write was used, make bn a logical view on b */
- bn->batLview = TRUE;
+ bn->P->lview = TRUE;
bn->T->heap.copied = TRUE;
- BBPshare(bn->H->parentid = b->batCacheid);
- BBPshare(bn->T->parentid = b->batCacheid);
+ if (bn->H->type != TYPE_void)
+ BBPshare(bn->H->parentid = b->batCacheid);
+ if (bn->T->type != TYPE_void)
+ BBPshare(bn->T->parentid = -b->batCacheid);
}
return GDK_SUCCEED;
error:
-------------------------------------------------------------------------
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