Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19012

Modified Files:
      Tag: XQuery_0-16
        pftijah.mx 
Log Message:
fixed bug in _buildIRindex() when working with fragments

the added test case solely runs fine, however, still fails when being executed
among the other test cases. 
(the problem here has to be figured out still. the same thing occurs actually 
when the order of the existing test cases create_coll0 and createcoll1 is 
changed.)



Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.92.2.15
retrieving revision 1.92.2.16
diff -u -d -r1.92.2.15 -r1.92.2.16
--- pftijah.mx  22 Feb 2007 14:30:06 -0000      1.92.2.15
+++ pftijah.mx  22 Feb 2007 20:24:32 -0000      1.92.2.16
@@ -2588,16 +2588,14 @@
        var frag_last := fragments.count();
        
        var pre_tid := bat("tj_" + collName + "_tid" + str(frag_offset));
-       var tids := pre_tid.slice(int(offset), pre_tid.count() - 1);
+       var tids := pre_tid.slice(int(offset) - int(pre_tid.seqbase()), 
pre_tid.count() - 1);
        tids.access(BAT_WRITE);
        frag_offset :+= 1;
        while (frag_offset <= frag_last)
        {
                tids.append(bat("tj_" + collName + "_tid" + str(frag_offset)));
                frag_offset :+= 1;
-       }       
-       var tmp := tids.kdiff(collBat.find("_pfpre"));
-        tmp := tmp.reverse().sort();
+       }
         
        # incremental index merge
        if (view_bbp_name().reverse().exist("tj_" + collName + "_TermIndex")) 
@@ -2605,7 +2603,7 @@
                var replaceBats := collBat.find("replaceBats");
                var tmp := tids.kdiff(collBat.find("_pfpre"));
                 tmp := tmp.reverse().ssort();
-                var i := mergeindex(tmp, collBat.find("_TermIndex"),
+               var i := mergeindex(tmp, collBat.find("_TermIndex"),
                                          collBat.find("_Terms"),
                                          collBat.find("_globalTerms").count() 
+ 1);       
                 collBat.replace("_TermIndex", i.fetch(0));


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to