aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/srv/buildindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/venti/srv/buildindex.c')
-rw-r--r--src/cmd/venti/srv/buildindex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
index 2f69a53b..09dcbd7d 100644
--- a/src/cmd/venti/srv/buildindex.c
+++ b/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;
}