summaryrefslogtreecommitdiff
path: root/source3/include
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/include
parentbc4b253b2c793a2fce6614ee7fadf1713f558776 (diff)
downloadsamba-6c55518d471950d8ebaf0df47634116802d6f735.tar.gz
samba-6c55518d471950d8ebaf0df47634116802d6f735.tar.bz2
samba-6c55518d471950d8ebaf0df47634116802d6f735.zip
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/include')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 50ac834307..0da8c25a39 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -721,6 +721,7 @@ struct named_mutex *grab_named_mutex(TALLOC_CTX *mem_ctx, const char *name,
/* The following definitions come from lib/sharesec.c */
+bool share_info_db_init(void);
SEC_DESC *get_share_security_default( TALLOC_CTX *ctx, size_t *psize, uint32 def_access);
SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename,
size_t *psize);