Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7520
Modified Files:
Tag: XQuery_0-18
pathfinder.mx
Log Message:
(Jennie on behalf of Peter)
- bugfix in index-destroy when a document is added to a read-only
collection. this corrupted the index structure, leading
to some fine 'runtime fetch index 12 not found' errors later on.
BTW: under such loads (read-only queries, interleaved with add-docs)
it is thus better to declare the collection as updatable,
because updatable indices are maintained, rather than
thrown away on each add-doc (read-only policy).
(question is whether TIJAH will choke on the NIL nodes
that occur in the updatable document representation)
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.367.2.6
retrieving revision 1.367.2.7
diff -u -d -r1.367.2.6 -r1.367.2.7
--- pathfinder.mx 11 Jun 2007 09:27:05 -0000 1.367.2.6
+++ pathfinder.mx 11 Jun 2007 15:20:22 -0000 1.367.2.7
@@ -2163,7 +2163,7 @@
# incremental readonly shred with existing indices: deactivate them
var coll_shortlock := reverse(runtime).fetch(RT_LOCK_FREELIST);
var coll_longlock := reverse(runtime).fetch(RT_NID_FREELIST);
-
runtime.delete().insert(coll_shortlock,empty_bat).insert(coll_longlock,empty_bat);
+ runtime.delete().insert(runtime(coll_shortlock,coll_longlock));
var qn_nid := commitbat + "_qn_nid";
var vx_hsh_nid := commitbat + "_vx_hsh_nid";
commitbat := "old_" + commitbat;
-------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins