tconstruct bloom filter in buildindex - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d4daacdef153ef05d6a3a6c5431290fa41ffbfc1
(DIR) parent 8af6c6b79a1a561dfb047494207f5b7dea02d182
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 24 Jul 2005 13:26:43 +0000
construct bloom filter in buildindex
Diffstat:
M src/cmd/venti/srv/buildindex.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
t@@ -156,5 +156,8 @@ threadmain(int argc, char *argv[])
if(buildindex(mainindex, part, base, clumps, zero) < 0)
sysfatal("can't build new index: %r");
+ if(mainindex->bloom)
+ writebloom(mainindex->bloom);
+
threadexitsall(0);
}