s3/smbd: open the share_info.tdb on startup instead of tconx
authorSteven Danneman <steven.danneman@isilon.com>
Wed, 26 Aug 2009 23:17:38 +0000 (16:17 -0700)
committerSteven Danneman <steven.danneman@isilon.com>
Wed, 26 Aug 2009 23:34:10 +0000 (16:34 -0700)
commit6c55518d471950d8ebaf0df47634116802d6f735
treef9041a6b1ad050a921c6fed0a3f767373e8e3f36
parentbc4b253b2c793a2fce6614ee7fadf1713f558776
s3/smbd: open the share_info.tdb on startup instead of tconx

This is a small performance optimization.  Instead of opening the tdb
on every smb connection in the forked child process, we now open it in
the parent and share the fd.

This also reduces the total fd usage in the system.
source3/include/proto.h
source3/lib/sharesec.c
source3/smbd/server.c