Charles Cazabon writes:
 > Russell Nelson <[EMAIL PROTECTED]> wrote:
 > > 
 > > Right, and any scalable email system is going to use NFS.  Therefore
 > > the question in my mind is not "What should be used for large folders
 > > instead of Maildirs?" but instead "What must be done to make Maildirs
 > > more efficient"?  One way to do that would be for Dan to change the
 > > Maildir specification so that a Maildir may have multiple "cur"
 > > directories.  Then, keep a CDB containing a subset of the message
 > > headers.
 > 
 > Doesn't the CDB file then require some trickery to avoid the necessity of
 > locks for multiple writers?

No.  What would you need a lock for?  A CDB is replaced atomically.
If you had two processes each reading the same set of data (the
existing CDB and the new messages) and writing a new CDB, would it
matter which one won the race to replace the old one?  The worst that
would happen is that one would start earlier and finish later, thereby
missing some new messages, or include a message just before someone
else deletes it.  But they'll be caught the next time you look for new
or deleted messages.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.

Reply via email to