commit 6b9887c7e5e26a4f7254104a9552e9a79c5489f7 from: rsc date: Thu May 03 02:21:52 2007 UTC debugging commit - 53f56329bec2f54f2b91384352886573ef037e6e commit + 6b9887c7e5e26a4f7254104a9552e9a79c5489f7 blob - 2f69a53b6595a2d5403151eb5b19902f7585b25d blob + 09dcbd7da40f873b36ec0174d0c867c3e2e2ecc8 --- src/cmd/venti/srv/buildindex.c +++ src/cmd/venti/srv/buildindex.c @@ -269,6 +269,10 @@ score2bucket(ISect *is, uchar *score) u32int b; b = hashbits(score, 32)/ix->div; + if(b < is->start || b >= is->stop){ + fprint(2, "score2bucket: score=%V div=%d b=%ud start=%ud stop=%ud\n", + score, ix->div, b, is->start, is->stop); + } assert(is->start <= b && b < is->stop); return b - is->start; }