Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16148

Modified Files:
      Tag: Feb2009
        serialize_pftijah.mx 
Log Message:
-- step 1 in crossing trhe oid32 boundary with PF/TIJAH: remove some casts to 
int.
This commit will (partially) fix bug "2722117 PF/TIJAH: dbat_finalize fails".

The fix was suggested by Henning/JanF, and seems to at least partially fix the 
indexing of a 30GB XML document. A new bug "2722117 PF/TIJAH: dbat_finalize 
fails" has been filed with the next issue. Bug "2722117" can be closed. No test 
can be created as the data is simply too large.



U serialize_pftijah.mx
Index: serialize_pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/serialize_pftijah.mx,v
retrieving revision 1.68.2.1
retrieving revision 1.68.2.2
diff -u -d -r1.68.2.1 -r1.68.2.2
--- serialize_pftijah.mx        25 Mar 2009 13:17:56 -0000      1.68.2.1
+++ serialize_pftijah.mx        30 Mar 2009 16:04:08 -0000      1.68.2.2
@@ -982,7 +982,7 @@
     --tjctx->doc_height;
     oid start = tj_popTag(tjctx); /* oid of the first node of the element */
     int size  = tjctx->tijahPre - start - 1; /* the Tijah document size */
-    dbat_set_int(&tjctx->dbat_collSize,(int)start,size);
+    dbat_set_int(&tjctx->dbat_collSize,start,size);
 #else
     (void) ctx;
 #endif
@@ -1136,7 +1136,7 @@
     if ( DOEMIT(tjctx) ) {
         oid start = tj_popTag(tjctx); /* oid of the first node of the element 
*/
         int size  = tjctx->tijahPre - start - 1; /* the Tijah element size */
-        dbat_set_int(&tjctx->dbat_collSize,(int)start,size);
+        dbat_set_int(&tjctx->dbat_collSize,start,size);
     };
 #ifdef TJ_TRACE
     if ( TJ_TRACE ) stream_printf(GDKout,"C[%s]:empty_endElement: \"%s\"\n", 
tjctx->name,"");
@@ -1167,7 +1167,7 @@
     if ( DOEMIT(tjctx) ) {
         oid start = tj_popTag(tjctx); /* oid of the first node of the element 
*/
         int size  = tjctx->tijahPre - start - 1; /* the Tijah element size */
-       dbat_set_int(&tjctx->dbat_collSize,(int)start,size);
+       dbat_set_int(&tjctx->dbat_collSize,start,size);
 #ifdef TJ_TRACE
         if ( TJ_TRACE ) stream_printf(GDKout,"C[%s]:endElement: \"%s\"\n", 
tjctx->name,name);
 #endif


------------------------------------------------------------------------------
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to