[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Local newsgroups possible with leafnode-2.0b7 ?

Matthias Andree <ma@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:

> The entire storage/retrieval part---for articles as well as
> xover---needs to be encapsulated. Ideas:
> * store can attach the line to .overview

Beware that this does not necessarily change its size or timestamp.

> * modifying .overview is subject to fine-grained locks

This would require either an additional per-group lock file, or
updating "in place" (for fcntl() locking).

Still remains the possibility of inconsistency between groupinfo and

> * any process that caches .overview data can then simply stat() the
>   overview file and if it's unmodified, just go ahead with its data, if
>   it is modified, just reread it.

If you want this to be reliable, you need to keep the file open and
compare st_ino, or wait at least one second when updating.

Is it really necessary that each leafnode process keeps its (slightly
modified) copy of the entire .overview in memory? Or could something
like mmap(2) or file position pointers be sufficient?


leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list