[PATCH] reduce fd usage in smbd
dan.sledz at isilon.com
Tue Feb 24 19:23:30 MST 2009
>From the patch description:
It seems we are calling tdb_reopen_all for two reasons:
The first reason is to make sure we get a new seek pointer. If the
has a native pread and pwrite (libreplace didn't replace them), we don't
need a new seek pointer.
The second reason has to do with the TDB_CLEAR_IF_FIRST flag. It
to not have to reopen in this case since a child process will never be
first to open a tdb. We will pay a penality if the child decides to
tdb, but looking at the usages of tdb_reopen, that seems rare.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1364 bytes
Url : http://lists.samba.org/archive/samba-technical/attachments/20090224/5b6cd8b7/0001-Reduce-fd-usage-by-avoiding-tdb_reopen_all.obj
More information about the samba-technical