Update of /cvsroot/monetdb/sql/src/storage/bat
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17036/src/storage/bat
Modified Files:
bat_storage.mx
Log Message:
instead of emptying the persistent bat, we switch to an empty bat
(this is done because bat clear doesn't like readonly bats ;-)
Index: bat_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_storage.mx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- bat_storage.mx 11 Nov 2007 22:31:45 -0000 1.8
+++ bat_storage.mx 16 Nov 2007 20:31:05 -0000 1.9
@@ -86,6 +86,15 @@
}
static log_bid
+e_ubat(int type)
+{
+ if (!eubats[type])
+ eubats[type] = BATnew(TYPE_oid, type, 0);
+ return temp_create(eubats[type]);
+}
+
+
+static log_bid
ebat_copy(log_bid b, oid ibase, int temp)
{
/* make a copy of b */
@@ -449,7 +458,10 @@
if (BATcount(ub)) {
BAT *b = temp_descriptor(bat->bid);
- update_table_bat(b, ub);
+ void_replace_bat(b, ub, TRUE);
+
+ temp_destroy(bat->ubid);
+ bat->ubid = e_ubat(ub->ttype);
bat_destroy(b);
}
bat_destroy(ub);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins