[Assorted-commits] SF.net SVN: assorted: [329] hash-join/trunk/src/hashjoin.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-06 17:29:57
|
Revision: 329 http://assorted.svn.sourceforge.net/assorted/?rev=329&view=rev Author: yangzhang Date: 2008-02-06 09:29:57 -0800 (Wed, 06 Feb 2008) Log Message: ----------- fixed more bugs Modified Paths: -------------- hash-join/trunk/src/hashjoin.cc Modified: hash-join/trunk/src/hashjoin.cc =================================================================== --- hash-join/trunk/src/hashjoin.cc 2008-02-06 17:09:53 UTC (rev 328) +++ hash-join/trunk/src/hashjoin.cc 2008-02-06 17:29:57 UTC (rev 329) @@ -377,6 +377,7 @@ char *title = p; char *release = strchr(p, '\0') + 1; p = strchr(release, '\0') + 2; + // printf("%s (%d) / %s (%d) %d %d %d %d\n", title, strlen(title), release, strlen(release), *(p - 4), *(p - 3), *(p - 2), *(p - 1)); // Copy this line into the correct local bucket. if (-1 != push_bucket(heads, bs, title, title, p - title)) { //cout << "FUCK " << heads[0] - bs[0].buf << " " << heads[1] - bs[1].buf << " " << p - title << endl; @@ -504,7 +505,7 @@ { pthread_t ts[ncpus]; for (unsigned int i = 0; i < ncpus; i++) { - ts[i] = method_thread1(this, &actdb::probe1, i, hs, actbucs); + ts[i] = method_thread1(this, &actdb::probe1, i, &hs[i], actbucs); } for (unsigned int i = 0; i < ncpus; i++) { void *value; @@ -533,7 +534,7 @@ hits++; join(title, name); } else { - //cout << " MISS" << endl; + cout << " MISS " << title << endl; misses++; } // End of tuple? This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |