diff options
author | David du Colombier <0intro@gmail.com> | 2011-06-02 09:33:56 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-06-02 09:33:56 -0400 |
commit | f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03 (patch) | |
tree | f9e6abdcd5c651adf191f8a9b2dd9655404313a9 /src/cmd/venti/srv/venti.c | |
parent | 7fb06adf54aa6e47974673dcdeb328780927b8e6 (diff) | |
download | plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.tar.gz plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.tar.bz2 plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.zip |
venti: import changes from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4523057
Diffstat (limited to 'src/cmd/venti/srv/venti.c')
-rw-r--r-- | src/cmd/venti/srv/venti.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/venti.c b/src/cmd/venti/srv/venti.c index 81495376..ce95c1fb 100644 --- a/src/cmd/venti/srv/venti.c +++ b/src/cmd/venti/srv/venti.c @@ -109,6 +109,9 @@ threadmain(int argc, char *argv[]) fprint(2, "conf..."); if(initventi(configfile, &config) < 0) sysfatal("can't init server: %r"); + /* + * load bloom filter + */ if(mainindex->bloom && loadbloom(mainindex->bloom) < 0) sysfatal("can't load bloom filter: %r"); @@ -139,15 +142,22 @@ threadmain(int argc, char *argv[]) if(mem == 0xffffffffUL) mem = 1 * 1024 * 1024; + + /* + * lump cache + */ if(0) fprint(2, "initialize %d bytes of lump cache for %d lumps\n", mem, mem / (8 * 1024)); initlumpcache(mem, mem / (8 * 1024)); + /* + * index cache + */ initicache(icmem); initicachewrite(); /* - * need a block for every arena and every process + * block cache: need a block for every arena and every process */ minbcmem = maxblocksize * (mainindex->narenas + mainindex->nsects*4 + 16); @@ -186,6 +196,8 @@ threadmain(int argc, char *argv[]) ventiserver(nil); else vtproc(ventiserver, nil); + + threadexits(nil); } static void |