diff options
| author | rsc <devnull@localhost> | 2004-03-13 04:35:13 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-03-13 04:35:13 +0000 |
| commit | 333c1dccc2f9af67b9c3d8513cca492d022fab4f (patch) | |
| tree | db2339b876058f9b21c228ce500336a88d6b954e /src/cmd/venti/fmtindex.c | |
| parent | 9ffbb5adcaeec878d3b6db0f8b1f654e839b4689 (diff) | |
| download | plan9port-333c1dccc2f9af67b9c3d8513cca492d022fab4f.tar.gz plan9port-333c1dccc2f9af67b9c3d8513cca492d022fab4f.zip | |
Add binary fraction tree index.
The old index code is still
supported too. Buildindex and
checkindex need to be revisited,
though they should be easy to adapt.
Diffstat (limited to 'src/cmd/venti/fmtindex.c')
| -rw-r--r-- | src/cmd/venti/fmtindex.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/venti/fmtindex.c b/src/cmd/venti/fmtindex.c index 19daa8e1..6934e3d5 100644 --- a/src/cmd/venti/fmtindex.c +++ b/src/cmd/venti/fmtindex.c @@ -66,9 +66,6 @@ threadmain(int argc, char *argv[]) for(i = 0; i < ix->nsects; i++) n += ix->sects[i]->blocks; - if(ix->div < 100) - sysfatal("index divisor too coarse: use bigger block size"); - fprint(2, "using %ud buckets of %ud; div=%d\n", ix->buckets, n, ix->div); } amap = MKNZ(AMap, narenas); @@ -105,6 +102,8 @@ threadmain(int argc, char *argv[]) } fprint(2, "configured index=%s with arenas=%d and storage=%lld\n", ix->name, n, addr - IndexBase); + fprint(2, "\tbitblocks=%d maxdepth=%d buckets=%d\n", + ix->bitblocks, ix->maxdepth, ix->buckets); ix->amap = amap; ix->arenas = arenas; |
