inn-stable on HP/UX

Heath Kehoe hakehoe at avalon.net
Fri May 28 23:45:24 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On May 26, 2004, at 3:53, Russ Allbery wrote:

> Heath Kehoe <hakehoe at avalon.net> writes:
>
>> A better way is to make nnrpd and other tools use mmap for those files
>> like innd does.
>
> It looks like all you have to do is add HIS_MMAP to the flags to 
> HISopen
> in nnrpd/article.c.  My vague memory is that Alex did things this way
> because mmap didn't work well at all over NFS, so I think you want to 
> make
> that conditional on nfsreader.
>
> expire, expireover, and grephistory are the other ones that need this.
> Maybe tdx-util and nntpget.
>

Here's what I did:
   - in hisv6.c:hisv6_reopen(), if MMAP_NEEDS_MSYNC and INND_DBZINCORE
       are set and nfsreader is false, override INCORE_NO to INCORE_MMAP
   - in dbz.c:putcore() added: if(tab->incore==INCORE_MMAP) {msync(...)}
   - in dbz.c moved if(options.writethrough) test from dbzsync() to
       putcore() because it only applies to INCORE_MEM.

If this is OK with everyone, I will commit (to STABLE).

- - heath
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAt88a4uXPAG0A1J4RAuc0AJ9XBVsJF4/JnNMf4JZPm1oBrCPQOACbBimM
3cj+R63+W1zg0Iq+TFOXaI0=
=0uk+
-----END PGP SIGNATURE-----



More information about the inn-workers mailing list