Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25208
Modified Files:
Tag: XQuery_0-22
pathfinder.mx
Log Message:
Fix off-by-one error. This caused some newly allocated pages to never
be used.
U pathfinder.mx
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.399.2.8
retrieving revision 1.399.2.9
diff -u -d -r1.399.2.8 -r1.399.2.9
--- pathfinder.mx 31 Mar 2008 15:59:40 -0000 1.399.2.8
+++ pathfinder.mx 1 Apr 2008 15:00:10 -0000 1.399.2.9
@@ -2868,9 +2868,8 @@
var pages_free := reverse(runtime.fetch(RT_LOCK_FREELIST));
page_id := oid(new_pid);
- new_pid :+= 1;
# create a new [nil,oid] bat with densely descending tail values,
ending at new_pid
- var newpids := densebat(wrd(last_pid -
new_pid)).seqbase(oid(new_pid)).reverse().seqbase(oid(nil)).access(BAT_WRITE).revert();
# put in reverse order to give the pages out in order
+ var newpids := densebat(wrd(last_pid -
new_pid)).seqbase(oid(new_pid +
1)).reverse().seqbase(oid(nil)).access(BAT_WRITE).revert(); # put in reverse
order to give the pages out in order
# add extra created pages to the freelist
if (isnil(err)) {
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins