Changeset: c9aa35207fcb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9aa35207fcb
Modified Files:
monetdb5/extras/crackers/crackers_core_unordered.mx
Branch: holindex
Log Message:
Fix bug in CRKunorderedZero_@2_@1_STx.
If nthreads==1 the two alternatives act in the same way.
diffs (15 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
@@ -500,7 +500,10 @@ CRKcrackUnorderedZero_@2_@1_MT ( const B
c_Thread_arg[i].mval = &mval;
c_Thread_arg[i].first = f;
c_Thread_arg[i].last = l;
- c_Thread_arg[i].m = (i < nthreads - 1) ? m : l -
f + 1;
+ if (nthreads!=1)
+ c_Thread_arg[i].m = (i < nthreads - 1) ? m : l
- f + 1;
+ else
+ c_Thread_arg[i].m = 0;
}
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list