Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv304/runtime

Modified Files:
        pathfinder.mx 
Log Message:
* The disappeared function now is appearing again due to the help of Jan.
  Stupidly enough, I was not projecting the result of that function and
  thus pathfinder was deleting that function at the algebra level since
  it was not producing any new results.
* DocmgmTape proc is now working and thus all docmgmt function should work
  in the algebra back-end.


Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -d -r1.392 -r1.393
--- pathfinder.mx       20 Jan 2008 22:35:06 -0000      1.392
+++ pathfinder.mx       21 Jan 2008 16:55:22 -0000      1.393
@@ -3766,27 +3766,20 @@
 backend of pathfinder.
 @mil
 PROC DocmgmTape(BAT[oid,BAT] ws,
-                BAT[oid,str] filepath, 
+                BAT[oid,str] location, 
                 BAT[oid,str] docname, 
                 BAT[oid,str] colname, 
                 BAT[oid,lng] percentage) : void
 {
-    filepath.print();
-    docname.print();
-    colname.print();
-    percentage.print();
-}
+    var del_doc := percentage.ord_uselect(-1LL).hmark([EMAIL PROTECTED]);
+    var add_doc := percentage.ord_uselect(0LL,lng_nil).hmark([EMAIL 
PROTECTED]);
 
-PROC DocmgmTape(BAT[oid,BAT] ws,
-                BAT[oid,void] filepath, 
-                BAT[oid,str] docname, 
-                BAT[oid,void] colname, 
-                BAT[oid,lng] percentage) : void
-{
-    filepath.print();
-    docname.print();
-    colname.print();
-    percentage.print();
+    shred_doc_base(del_doc(bit_nil, del_doc.leftfetchjoin(docname), true),
+                   add_doc.leftfetchjoin(location), 
+                   add_doc.leftfetchjoin(docname), 
+                   add_doc.leftfetchjoin(colname), 
+                   add_doc.leftfetchjoin(percentage),
+                   stream_nil, ws_id(ws));
 }
 
 @- MIL Document Management Interface


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to