summaryrefslogtreecommitdiff
path: root/source3/lib/sharesec.c
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-08-26 16:17:38 -0700
committerSteven Danneman <steven.danneman@isilon.com>2009-08-26 16:34:10 -0700
commit6c55518d471950d8ebaf0df47634116802d6f735 (patch)
treef9041a6b1ad050a921c6fed0a3f767373e8e3f36 /source3/lib/sharesec.c
parentbc4b253b2c793a2fce6614ee7fadf1713f558776 (diff)
downloadsamba-6c55518d471950d8ebaf0df47634116802d6f735.tar.gz
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.
Diffstat (limited to 'source3/lib/sharesec.c')
-rw-r--r--source3/lib/sharesec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index a1d30f1d2b4..799d983c821 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -37,7 +37,7 @@ static int delete_fn(struct db_record *rec, void *priv)
return 0;
}
-static bool share_info_db_init(void)
+bool share_info_db_init(void)
{
const char *vstring = "INFO/version";
int32 vers_id;