Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18844
Modified Files:
Tag: XQuery_0-18
pathfinder.mx
Log Message:
(Jennie on behalf of Peter)
Fix for shredding a doc with 0% free space into an existing updatable
collection: if the collection already exists, get the value of
"updatable" from the collection's updatable property, iso. get it from
the free percentage.
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.367.2.7
retrieving revision 1.367.2.8
diff -u -d -r1.367.2.7 -r1.367.2.8
--- pathfinder.mx 11 Jun 2007 15:20:22 -0000 1.367.2.7
+++ pathfinder.mx 11 Jun 2007 21:56:43 -0000 1.367.2.8
@@ -3381,6 +3381,7 @@
lng wsid) : oid
{
var verbose := >=(wsid, WS_MAXID);
+ var updatable := >(pageFree,0LL);
var err := str_nil;
var coll_shortlock := reverse(runtime).fetch(RT_LOCK_FREELIST);
var pre := [EMAIL PROTECTED];
@@ -3413,11 +3414,13 @@
}
if (isnil(coll_oid))
coll_oid := docid_base; # new collection got oid of first doc in it
+ else
+ updatable := (ttype(docBAT.fetch(MAP_PID)) = oid);
# finish the shred (set doc_oids in FRAG_ROOT, and maintain the nsloc
index)
var protect := not(isnil(coll_shortlock));
if (protect) lock_set(coll_shortlock); # never lock a collection inside
the short lock
- err := CATCH(__shred_into_docBAT(docBAT, colname, coll_oid, docid_base,
runtime, pre, att, >(pageFree,0LL), wsid));
+ err := CATCH(__shred_into_docBAT(docBAT, colname, coll_oid, docid_base,
runtime, pre, att, updatable, wsid));
if (protect) lock_unset(coll_shortlock);
if (not(isnil(err))) ERROR(err);
-------------------------------------------------------------------------
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