Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11453/modules/kernel
Modified Files:
bat5.mx
Log Message:
Properly handle self-deletion by replacing it with
a BATclear. Otherwise, there may be a left-over
tupled.
Index: bat5.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/bat5.mx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- bat5.mx 26 May 2007 10:34:41 -0000 1.17
+++ bat5.mx 26 May 2007 13:47:52 -0000 1.18
@@ -2048,6 +2048,8 @@
BAT *b, *bn, *s;
(void) r;
+ if( *bid == *sid)
+ return BKCdelete_all(r,bid);
if ((b = BATdescriptor(*bid)) == NULL) {
throw(MAL, "bat.delete", "Cannot access descriptor");
}
@@ -2055,6 +2057,7 @@
BBPreleaseref(b->batCacheid);
throw(MAL, "bat.delete", "Cannot access descriptor");
}
+
bn=BATdel(b, s,FALSE);
if(bn==NULL )
BBPreleaseref(b->batCacheid);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins