Resend - with PINE

sunny at sunny at
Sun Nov 25 01:28:02 GMT 2001

Thanks again,

I understand the need for periodic garbage collection. However, it's not
so clear why this garbage collection is done on each new client

Why not (1) do the traversal on startup (before accept()ing any
connection), as well as periodically with a special garbage collection
process? Wouldn't it be more robust?


-----Original Message-----
From: Jeremy Allison [mailto:jra at]
Sent: Sunday, November 25, 2001 04:27
To: Sunny Marueli
Cc: jra at; samba-technical at
Subject: Re: Resend - with PINE

On Fri, Nov 23, 2001 at 10:22:35PM +0200, sunny at wrote:

> Asynchronous open will not ensure the file was really opened
> This might be a problem when open() is used to verify a file exists.

> Why is the traversal needed on every new process - can't it be moved
> before Samba starts processing requests (i.e. before any fork() takes
> place)?

The traversal is needed in case a running samba process aborted
and left dead records in the tdb. Cleanup should be done periodically
to ensure this db is safe. We could change to doing the scan every
10 startups or so..... but we must do it periodically for robustness


PS. You're now sending ascii email, thanks :-).

More information about the samba-technical mailing list