Changeset: 03200759a887 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=03200759a887
Modified Files:
        monetdb5/extras/crackers/crackers_core_unordered.mx
Branch: holindex
Log Message:

Fix bug in out-of-place cracking.


diffs (24 lines):

diff --git a/monetdb5/extras/crackers/crackers_core_unordered.mx 
b/monetdb5/extras/crackers/crackers_core_unordered.mx
--- a/monetdb5/extras/crackers/crackers_core_unordered.mx
+++ b/monetdb5/extras/crackers/crackers_core_unordered.mx
@@ -1884,18 +1884,14 @@ CRKcrackUnorderedTwoCopy_@2_@1( BAT *b, 
         @1  *src_t_basebat = (@1*)Tloc(b, BUNfirst(b));
         @1  *src_t_crackerbat = (@1*)Tloc(bc, BUNfirst(bc));
         oid *src_h_crackerbat = (oid *) Hloc(bc,BUNfirst(bc));
-        oid hf = b->hseqbase + first;
-        oid hl =  b->hseqbase + last;
-        BUN i, j[2] = {first, last}, kt[2] = {1,-1}, kh[2] = {-1,1};
-        oid h[2] = {hl, hf};
+        BUN i, j[2] = {first, last}, kt[2] = {1,-1};
 
         for(i = first; i <= last; i++)
         {
                 bit x = src_t_basebat[i] @8 pivot;
                 src_t_crackerbat[j[x]] = src_t_basebat[i];
-                src_h_crackerbat[j[x]] = h[x];
+                src_h_crackerbat[j[x]] = b->hseqbase + i;
                 j[x] += kt[x];
-                h[x] += kh[x];
         }
 
         assert(j[0] > first);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to